producer

package
v0.0.0-...-132c30d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProduceDB  = errors.New("could not write in DB")
	ErrProduceMsg = errors.New("message taken into account, but service temporily unavailable")
)

Functions

func DefaultSettings

func DefaultSettings() *viper.Viper

DefaultSettings returns all defaults for this package as a viper register.

This is primarily intended for documentation & help purpose.

Types

type Producer

type Producer struct {
	ID string
	// contains filtered or unexported fields
}

func New

func New(rt injected.Runtime, id string) *Producer

func (Producer) Logger

func (p Producer) Logger() log.Factory

func (*Producer) Start

func (p *Producer) Start() error

func (*Producer) Stop

func (p *Producer) Stop() error

Jump to

Keyboard shortcuts

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