//
pkg.gl
Category
github.com/tsmweb/go-helper-api
observability
event
package
1.4.4
Repository:
https://github.com/tsmweb/go-helper-api.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
0
Files
116 SLOC
#
Functions
Close
Close closes the event communication channel and the Apache Kafka producer.
Init
Init creates a new producer for Apache Kafka and initializes the routines for sending events.
New
New creates an Event instance.
Send
Send sends the event to the Apache Kafka topic.
#
Constants
Debug
Debug represents a debug event.
Error
Error represents an error event.
Info
Info represents an information event.
Warning
Warning represents a warning event.
#
Variables
ErrClosed
No description provided by the author
ErrRunning
No description provided by the author
#
Structs
Event
Event structure represents an event log.
#
Type aliases
EventType
EventType represents the event type ("info", "debug", "warning", ...).