README ¶ xxx 介绍 xxxx xxxx xxxx 安装教程 go get github.com/jageros/hawox 使用例子 package main import ( "fmt" "github.com/jageros/hawox/xxx" ) func main() { /* xxxxx xxxxx xxxxx */ } 使用说明 xxxx xxxx xxxx Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Config type IConsumer func NewConsumer(ctx contextx.Context, opfs ...func(cfg *Config)) (IConsumer, error) type IProducer func NewProducer(ctx contextx.Context, opfs ...func(cfg *Config)) (IProducer, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Type string Addrs string Topic string GroupId string WarnTime time.Duration } type IConsumer ¶ type IConsumer interface { OnMessageHandler(f func(msg *pbf.QueueMsg)) } func NewConsumer ¶ func NewConsumer(ctx contextx.Context, opfs ...func(cfg *Config)) (IConsumer, error) type IProducer ¶ type IProducer interface { PushProtoMsg(msgId int32, arg interface{}, target *pbf.Target) error Push(msg *pbf.QueueMsg) error } func NewProducer ¶ func NewProducer(ctx contextx.Context, opfs ...func(cfg *Config)) (IProducer, error) Source Files ¶ View all Source files queues.go Directories ¶ Show internal Expand all Path Synopsis kafka nsq Click to show internal directories. Click to hide internal directories.