Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishDelayTask ¶
Types ¶
type DelayQueue ¶
type Job ¶
type Job struct {
DeliveryTs int `json:"delivery-ts" msgpack:"deliveryTs"`
Retry int `json:"retry" msgpack:"retry"`
ExecEndTime string `json:"execEndTime" msgpack:"execEndTime"`
Msg string `json:"msg" msgpack:"msg"`
ExecTs int `json:"execTs" msgpack:"execTs"`
ExecStartTime string `json:"execStartTime" msgpack:"execStartTime"`
Status int `json:"status" msgpack:"status"`
Timeout int `json:"timeout" msgpack:"timeout"`
ExecNum int `json:"execNum" msgpack:"execNum"`
Payload []byte `json:"payload" msgpack:"payload"`
PublishTime string `json:"publishTime" msgpack:"publishTime"`
DeliveryTime string `json:"deliveryTime" msgpack:"deliveryTime"`
}
type MsgPackSerializer ¶
type MsgPackSerializer struct{}
func (MsgPackSerializer) Marshal ¶
func (s MsgPackSerializer) Marshal(body interface{}) (out []byte, err error)
func (MsgPackSerializer) Unmarshal ¶
func (s MsgPackSerializer) Unmarshal(in []byte, body interface{}) error
type Option ¶
type Option func(*delayQueue)
func WithConcurrent ¶
func WithSerializer ¶
func WithSerializer(serializer Serializer) Option
type QueueCallback ¶
Click to show internal directories.
Click to hide internal directories.