company-search-consumer

command module
v0.0.0-...-c800da7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 14 Imported by: 0

README

company-search-consumer

A service that consumes messages from the stream-company-profile topic. The messages are then unmarhsalled and a RESTful request is sent to an external API with the intention of adding or updating documents present in an elastic search index.

Requirements

  • Go
  • Git
  • Kafka - this is installed as part of the chs local build (within the chs-kafka VM)
  • Kafka 2 - use this within Docker

Getting started

To build the service:

  1. Clone the repository
  2. Build the executable using:
make build
  1. Run the service in foreground with the start script:
./start.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config defines the environment variable and command-line flags
Package config defines the environment variable and command-line flags
Package service contains the creation and start of the listener for the Kafka topic
Package service contains the creation and start of the listener for the Kafka topic
Package upsert contains the logic to send the upsert request to the API
Package upsert contains the logic to send the upsert request to the API

Jump to

Keyboard shortcuts

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