Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // any string that makes sense in the context of the client such as "Error" Type string // context such as an error message Value string // correlation id to group messages CorrelationId string // content type such as application/json ContentType string }
func NewDownloadEvent ¶
func NewServiceEvent ¶
type Events ¶
type Events struct { Producer KafkaProducer // contains filtered or unexported fields }
type EventsApi ¶
type EventsApi interface { Notify(*Event) error Close() // contains filtered or unexported methods }
func NewEvents ¶
func NewEvents(config *EventsConfig) (EventsApi, error)
type EventsConfig ¶
type EventsConfig struct { Enabled bool // disabled returns a dummy producer BootstrapServers string // comma separated list of brokers ClientId string // identify the client in the logs Acks string // defaults to all Topic string // eg. "downloads" ProducerId string // identify the producer such as node name, etc Config map[string]string // any other kafka producer config }
Click to show internal directories.
Click to hide internal directories.