Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageFifo ¶
type MessageFifo struct {
// contains filtered or unexported fields
}
func NewMessageFifo ¶
func NewMessageFifo() *MessageFifo
set the fifo capacity to MessageFiFoSizeMax
func (*MessageFifo) Close ¶
func (f *MessageFifo) Close()
func (*MessageFifo) Get ¶
func (f *MessageFifo) Get(msg *model.Message) error
Get get message from fifo this api is blocked when the fifo is empty
func (*MessageFifo) Put ¶
func (f *MessageFifo) Put(msg *model.Message)
Put put the message into fifo
Click to show internal directories.
Click to hide internal directories.