sink

package
v0.0.0-...-77edef9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Key   string
	Value []byte
}

Message is the sink message.

type Sink

type Sink interface {
	// Publish publishes a message to the sink
	Publish(msg *Message) error
}

Sink the sink interface that needs to be implemented from each sink

type SinkConf

type SinkConf interface {
	GetKind() string
}

SinkConf all sinks should implement this interfaces

type SinkConfCommon

type SinkConfCommon struct {
	Kind string `json:"kind" yaml:"kind"`
}

func (*SinkConfCommon) GetKind

func (s *SinkConfCommon) GetKind() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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