queue

package
Version: v0.0.0-...-b042743 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogQueue

type LogQueue struct {
	// contains filtered or unexported fields
}

Log queue to buffer logs

func NewLogQueue

func NewLogQueue(bufferSize uint32) *LogQueue

New log queue function

func (*LogQueue) Chan

func (queue *LogQueue) Chan() chan *log_proto.LogPackage

Get log channel

func (*LogQueue) Pop

func (queue *LogQueue) Pop(ms time.Duration) (*log_proto.LogPackage, error)

Pop log from queue

func (*LogQueue) Push

func (queue *LogQueue) Push(item *log_proto.LogPackage) error

Push log to queue

Source Files

Jump to

Keyboard shortcuts

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