Documentation ¶
Index ¶
- Variables
- func Colorize(colorString string) func(...interface{}) string
- type Sink
- func (s *Sink) Dequeue(ctx context.Context, envelopes []envelope.Envelope) error
- func (s *Sink) Enqueue(envelopes []envelope.Envelope) error
- func (s *Sink) Initialize(conf config.Sink) error
- func (s *Sink) Metadata() backendutils.SinkMetadata
- func (s *Sink) Shutdown() error
- func (s *Sink) StartWorker() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Info = Teal Warn = Yellow Fata = Red )
View Source
var ( Black = Colorize("\033[1;30m%s\033[0m") Red = Colorize("\033[1;31m%s\033[0m") Green = Colorize("\033[1;32m%s\033[0m") Yellow = Colorize("\033[1;33m%s\033[0m") Purple = Colorize("\033[1;34m%s\033[0m") Magenta = Colorize("\033[1;35m%s\033[0m") Teal = Colorize("\033[1;36m%s\033[0m") White = Colorize("\033[1;37m%s\033[0m") )
Functions ¶
Types ¶
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
func (*Sink) Metadata ¶
func (s *Sink) Metadata() backendutils.SinkMetadata
func (*Sink) StartWorker ¶
Click to show internal directories.
Click to hide internal directories.