Documentation ¶
Index ¶
- Constants
- type Assignment
- type Column
- type ConfigMap
- type ConfigValue
- type CreateItem
- type Data
- type DataMessage
- func (m *DataMessage) DBName() string
- func (m *DataMessage) Offset() Offset
- func (m *DataMessage) SetData(data []*Data)
- func (m *DataMessage) SetDbName(dbName string)
- func (m *DataMessage) SetOffset(offset Offset)
- func (m *DataMessage) SetTopic(topic string)
- func (m *DataMessage) String() string
- func (m *DataMessage) Topic() string
- func (m *DataMessage) Value() interface{}
- type Error
- type Event
- type Message
- type Meta
- type MetaData
- type MetaDataMessage
- func (m *MetaDataMessage) DBName() string
- func (m *MetaDataMessage) Offset() Offset
- func (m *MetaDataMessage) SetDbName(dbName string)
- func (m *MetaDataMessage) SetMetaData(metaData *MetaData)
- func (m *MetaDataMessage) SetOffset(offset Offset)
- func (m *MetaDataMessage) SetTopic(topic string)
- func (m *MetaDataMessage) String() string
- func (m *MetaDataMessage) Topic() string
- func (m *MetaDataMessage) Value() interface{}
- type MetaMessage
- func (m *MetaMessage) DBName() string
- func (m *MetaMessage) Offset() Offset
- func (m *MetaMessage) SetDbName(dbName string)
- func (m *MetaMessage) SetMeta(meta *Meta)
- func (m *MetaMessage) SetOffset(offset Offset)
- func (m *MetaMessage) SetTopic(topic string)
- func (m *MetaMessage) String() string
- func (m *MetaMessage) Topic() string
- func (m *MetaMessage) Value() interface{}
- type Offset
- type Tag
- type TopicPartition
Constants ¶
View Source
const ErrorOther = 0xffff
View Source
const OffsetInvalid = Offset(-2147467247)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
type ConfigMap ¶
type ConfigMap map[string]ConfigValue
func (ConfigMap) Get ¶
func (m ConfigMap) Get(key string, defval ConfigValue) (ConfigValue, error)
type ConfigValue ¶
type ConfigValue interface{}
type CreateItem ¶
type DataMessage ¶
type DataMessage struct { TopicPartition TopicPartition // contains filtered or unexported fields }
func (*DataMessage) DBName ¶
func (m *DataMessage) DBName() string
func (*DataMessage) Offset ¶
func (m *DataMessage) Offset() Offset
func (*DataMessage) SetData ¶
func (m *DataMessage) SetData(data []*Data)
func (*DataMessage) SetDbName ¶
func (m *DataMessage) SetDbName(dbName string)
func (*DataMessage) SetOffset ¶
func (m *DataMessage) SetOffset(offset Offset)
func (*DataMessage) SetTopic ¶
func (m *DataMessage) SetTopic(topic string)
func (*DataMessage) String ¶
func (m *DataMessage) String() string
func (*DataMessage) Topic ¶
func (m *DataMessage) Topic() string
func (*DataMessage) Value ¶
func (m *DataMessage) Value() interface{}
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func NewTMQError ¶
func NewTMQErrorWithErr ¶
type Meta ¶
type Meta struct { Type string `json:"type"` TableName string `json:"tableName"` TableType string `json:"tableType"` CreateList []*CreateItem `json:"createList"` Columns []*Column `json:"columns"` Using string `json:"using"` TagNum int `json:"tagNum"` Tags []*Tag `json:"tags"` TableNameList []string `json:"tableNameList"` AlterType int `json:"alterType"` ColName string `json:"colName"` ColNewName string `json:"colNewName"` ColType int `json:"colType"` ColLength int `json:"colLength"` ColValue string `json:"colValue"` ColValueNull bool `json:"colValueNull"` }
type MetaDataMessage ¶
type MetaDataMessage struct { TopicPartition TopicPartition // contains filtered or unexported fields }
func (*MetaDataMessage) DBName ¶
func (m *MetaDataMessage) DBName() string
func (*MetaDataMessage) Offset ¶
func (m *MetaDataMessage) Offset() Offset
func (*MetaDataMessage) SetDbName ¶
func (m *MetaDataMessage) SetDbName(dbName string)
func (*MetaDataMessage) SetMetaData ¶
func (m *MetaDataMessage) SetMetaData(metaData *MetaData)
func (*MetaDataMessage) SetOffset ¶
func (m *MetaDataMessage) SetOffset(offset Offset)
func (*MetaDataMessage) SetTopic ¶
func (m *MetaDataMessage) SetTopic(topic string)
func (*MetaDataMessage) String ¶
func (m *MetaDataMessage) String() string
func (*MetaDataMessage) Topic ¶
func (m *MetaDataMessage) Topic() string
func (*MetaDataMessage) Value ¶
func (m *MetaDataMessage) Value() interface{}
type MetaMessage ¶
type MetaMessage struct { TopicPartition TopicPartition // contains filtered or unexported fields }
func (*MetaMessage) DBName ¶
func (m *MetaMessage) DBName() string
func (*MetaMessage) Offset ¶
func (m *MetaMessage) Offset() Offset
func (*MetaMessage) SetDbName ¶
func (m *MetaMessage) SetDbName(dbName string)
func (*MetaMessage) SetMeta ¶
func (m *MetaMessage) SetMeta(meta *Meta)
func (*MetaMessage) SetOffset ¶
func (m *MetaMessage) SetOffset(offset Offset)
func (*MetaMessage) SetTopic ¶
func (m *MetaMessage) SetTopic(topic string)
func (*MetaMessage) String ¶
func (m *MetaMessage) String() string
func (*MetaMessage) Topic ¶
func (m *MetaMessage) Topic() string
func (*MetaMessage) Value ¶
func (m *MetaMessage) Value() interface{}
Click to show internal directories.
Click to hide internal directories.