fifo

package
v0.0.0-...-39a1a8e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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