protocol

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgDurationStartEnqueue   = "start_enqueue"
	MsgDurationEnqueueDequeue = "enqueue_dequeue"
	MsgDurationDequeueSent    = "dequeue_sent"
	MsgDurationAll            = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaMsgMeta

type KafkaMsgMeta struct {
	PipelineName string
	StartTime    time.Time
	EnqueueTime  time.Time
	DequeueTime  time.Time
	SentTime     time.Time
	KafkaTopic   string
	// KafkaPartitions is an array of partitions, DdlMsg message might be sent to all partitions
	KafkaPartitions []int32
}

func (*KafkaMsgMeta) AddMetrics

func (m *KafkaMsgMeta) AddMetrics()

func (*KafkaMsgMeta) AddTimestamp

func (m *KafkaMsgMeta) AddTimestamp(t MsgTimestamp)

func (*KafkaMsgMeta) GetPartitions

func (m *KafkaMsgMeta) GetPartitions() []int32

func (*KafkaMsgMeta) GetTopic

func (m *KafkaMsgMeta) GetTopic() string

func (*KafkaMsgMeta) MetricsString

func (m *KafkaMsgMeta) MetricsString() string

func (*KafkaMsgMeta) SetKafkaPartitions

func (m *KafkaMsgMeta) SetKafkaPartitions(partitions []int32)

func (*KafkaMsgMeta) SetKafkaTopic

func (m *KafkaMsgMeta) SetKafkaTopic(topic string)

func (*KafkaMsgMeta) SetPipelineName

func (m *KafkaMsgMeta) SetPipelineName(name string)

type MessageRouter

type MessageRouter interface {
	GetTopic() string
	GetPartitions() []int32
}

type MessageTracer

type MessageTracer interface {
	AddTimestamp(t MsgTimestamp)
	AddMetrics()
	MetricsString() string
}

type MsgTimestamp

type MsgTimestamp int
const (
	MsgTime MsgTimestamp = iota
	MsgStartTime
	MsgEnqueueTime
	MsgDequeueTime
	MsgSentTime
)

Directories

Path Synopsis
Package dcp is a generated protocol buffer package.
Package dcp is a generated protocol buffer package.
Package msgpb is a generated protocol buffer package.
Package msgpb is a generated protocol buffer package.
Package slave_binlog is a generated protocol buffer package.
Package slave_binlog is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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