async_kafka

package
v0.9.54 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const Name = "async-kafka"

Variables

View Source
var (
	KafkaMsgSizeGaugeVec = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: "gravity",
		Subsystem: "output_async_kafka",
		Name:      "binlog_msg_size",
		Help:      "binlog msg size",
	}, []string{metrics.PipelineTag, "topic"})
)

Functions

This section is empty.

Types

type AsyncKafka

type AsyncKafka struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*AsyncKafka) Close

func (output *AsyncKafka) Close()

func (*AsyncKafka) Configure

func (output *AsyncKafka) Configure(pipelineName string, data map[string]interface{}) error

func (*AsyncKafka) Execute

func (output *AsyncKafka) Execute(msgs []*core.Msg) error

func (*AsyncKafka) GetRouter added in v0.9.17

func (output *AsyncKafka) GetRouter() core.Router

func (*AsyncKafka) Start

func (output *AsyncKafka) Start(msgAcker core.MsgAcker) error

type AsyncKafkaPluginConfig

type AsyncKafkaPluginConfig struct {
	KafkaConfig    *config.KafkaGlobalConfig `mapstructure:"kafka-global-config" json:"kafka-global-config"`
	Routes         []map[string]interface{}  `mapstructure:"routes" json:"routes"`
	OutputFormat   string                    `mapstructure:"output-format" json:"output-format"`
	SchemaVersion  string                    `mapstructure:"schema-version" json:"schema-version"`
	IgnoreLargeMsg int                       `mapstructure:"ignore-large-msg" json:"ignore-large-msg"`
}

Jump to

Keyboard shortcuts

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