Documentation ¶
Overview ¶
Package servicelog contains an implementation of Producer interface that can be used to produce (that is send) messages to Service Log.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Producer ¶
type Producer struct { Configuration conf.ServiceLogConfiguration OCMClient ocmclient.OCMClient AccessToken string TokenRefreshmentCounter int TokenRefreshmentStartDelay time.Duration TokenRefreshmentDelay time.Duration TokenRefreshmentThreshold time.Duration }
Producer is an implementation of Producer interface for Service Log
func (*Producer) Close ¶
Close closes Producer (in case of Service Log implementation, it does not do anything)
func (*Producer) ProduceMessage ¶
func (producer *Producer) ProduceMessage(msg types.ProducerMessage) (partitionID int32, offset int64, err error)
ProduceMessage sends the given message to Service Log
Click to show internal directories.
Click to hide internal directories.