kafka

package
v0.0.0-...-b2d74e5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GROUP_NAME  = "global"
	TYPE_NAME   = "notifier"
	MODULE_NAME = "kafka"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxRetry   int
	BrokerList []string
	Topic      string
	Message    string
}

type GlobalNotifieKafka

type GlobalNotifieKafka struct {
	core.Module
	// contains filtered or unexported fields
}

GlobalNotifieKafka represends ...

func (*GlobalNotifieKafka) Close

func (m *GlobalNotifieKafka) Close() error

Close closes compressor

func (*GlobalNotifieKafka) GetConfig

func (m *GlobalNotifieKafka) GetConfig() interface{}

GetConfig returns module config

func (*GlobalNotifieKafka) GetGroup

func (m *GlobalNotifieKafka) GetGroup() core.ModuleGroup

GetGroup returns group of the module

func (*GlobalNotifieKafka) GetName

func (m *GlobalNotifieKafka) GetName() string

GetName returns name of the module

func (*GlobalNotifieKafka) GetType

func (m *GlobalNotifieKafka) GetType() core.ModuleType

GetType returns group of the module

func (*GlobalNotifieKafka) InitModule

func (m *GlobalNotifieKafka) InitModule(_cfg interface{}) error

InitModule initializes module

func (*GlobalNotifieKafka) InitPipe

func (m *GlobalNotifieKafka) InitPipe(w io.Writer, r io.Reader) error

InitPipe initializes pipe

func (*GlobalNotifieKafka) Run

Run runs module

Jump to

Keyboard shortcuts

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