queue

package
v0.0.0-...-aec2e1a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue interface {
	Init(int) error
	Put(interface{}) error
	GetHandler() (interface{}, error)
}

func GetQueue

func GetQueue(name string, num int) (Queue, error)

type QueueChan

type QueueChan struct {
	Queue chan config.SqlMsg
	// contains filtered or unexported fields
}

func (*QueueChan) GetHandler

func (c *QueueChan) GetHandler() (interface{}, error)

func (*QueueChan) Init

func (c *QueueChan) Init(num int) error

func (*QueueChan) Put

func (c *QueueChan) Put(msg interface{}) error

Jump to

Keyboard shortcuts

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