smartlogic-notifier

command module
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

smartlogic-notifier

Circle CIGo Report Card Coverage Status

Introduction

Entrypoint for concept publish notifications from the Smartlogic Semaphore system.

Installation

Download the source code, dependencies and build the binary:

    go get github.com/Financial-Times/smartlogic-notifier
    cd $GOPATH/src/github.com/Financial-Times/smartlogic-notifier
    go install

To run the tests:

    go test -v -race ./...
  1. Run the binary (using the help flag to see the available optional arguments):

     $GOPATH/bin/smartlogic-notifier [--help]
    

Options:

    --app-system-code="smartlogic-notifier"         System Code of the application ($APP_SYSTEM_CODE)
    --app-name="Smartlogic Notifier"                Application name ($APP_NAME)
    --kafkaAddresses="localhost:9092"               Comma separated list of Kafka broker addresses ($KAFKA_ADDRESSES)
    --kafkaTopic="SmartlogicConcept"                Kafka topic to send messages to ($KAFKA_TOPIC)
    --kafkaClusterArn=""                            Kafka cluster ARN used by the producer for maintenance monitoring ($KAFKA_CLUSTER_ARN)
    --smartlogicBaseURL=""                          Base URL for the Smartlogic instance ($SMARTLOGIC_BASE_URL)
    --smartlogicModel=""                            Smartlogic model to read from ($SMARTLOGIC_MODEL)
    --smartlogicAPIKey=""                           Smartlogic model to read from ($SMARTLOGIC_API_KEY)
    --smartlogicHealthcheckConcept=""               Concept uuid existing in the Smartlogic model to be used for healthcheck ($SMARTLOGIC_HEALTHCHECK_CONCEPT)
    --port="8080"                                   Port to listen on ($APP_PORT)
    --logLevel="info"                               Level of logging to be shown ($LOG_LEVEL)
    --healthcheckSuccessCacheTime="1m"              How long to cache a successful Smartlogic response for ($HEALTHCHECK_SUCCESS_CACHE_TIME)
    --conceptUriPrefix="http://www.ft.com/thing/"   The concept URI prefix to be added before the UUID part of the Smartlogic request path ($CONCEPT_URI_PREFIX)

Build and deployment

Service endpoints

Endpoints are documented in Swagger

Based on the following google doc.

Healthchecks

Admin endpoints are:

/__gtg

/__health

/__build-info

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址