Documentation
¶
Index ¶
- Constants
- func CloneTopic() map[string]*nsqd.Topic
- func Close()
- func GetDepth() (depth int64)
- func GetTopic(name fmt.Stringer) *nsqd.Topic
- func GetTopicDepth(name fmt.Stringer) int64
- func RegisterHandel(topicName fmt.Stringer, channelName fmt.Stringer, handel *Handle)
- func RegisterTopic(name fmt.Stringer, messageType interface{})
- func Start(o *Option) error
- type Channel
- type Handle
- type HandleFunc
- type HandleReq
- type HandleRsp
- type Logger
- type Option
- type PublishRsp
- type Topic
Constants ¶
View Source
const (
Version = 1
)
Variables ¶
This section is empty.
Functions ¶
func CloneTopic ¶
func GetTopicDepth ¶
func RegisterHandel ¶
func RegisterTopic ¶
Types ¶
type Handle ¶
type Handle struct { HandleFunc HandleFunc `json:"handle_func,omitempty"` // 默认为无限重试 MaxAttempts uint16 `json:"max_attempts,omitempty"` MaxProcessCnt int64 `json:"max_process_cnt,omitempty"` // 消息超时时间 MsgTimeout time.Duration `json:"msg_timeout,omitempty"` }
type HandleFunc ¶
type Option ¶
type PublishRsp ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.