kafka

package
v0.0.0-...-e8fd0d8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const WALType = "WAL"

Variables

This section is empty.

Functions

func CommitUpdate

func CommitUpdate(key, data interface{}, tblname string)

WAL

func Init

func Init(brokers []string, waltopic, tracetopic, id string)

func NewConsumer

func NewConsumer() (sarama.Consumer, error)

func Trace

func Trace(content map[string]*json.RawMessage)

Trace user events

Types

type WAL

type WAL struct {
	Type       string      `json:"type"`
	InstanceId string      `json:"instanceId"`
	Table      string      `json:"table"`
	Host       string      `json:"host"`
	Key        string      `json:"key"`
	CreatedAt  time.Time   `json:"created_at"`
	Data       interface{} `json:"data"`
}

related stream processor: https://github.com/xtaci/sp

Jump to

Keyboard shortcuts

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