channel

package
v0.0.0-...-bd520fb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChanSizeDefault = 1024
)

constants for channel context

View Source
const (
	ModuleNameContainerImage = "containerImage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanContext

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

func ChanContextInstance

func ChanContextInstance() *ChanContext

func (*ChanContext) AddChannel

func (ctx *ChanContext) AddChannel(module string, moduleCh ChanMsgType)

func (*ChanContext) DelChannel

func (ctx *ChanContext) DelChannel(module string)

deleteChannel by module name

func (*ChanContext) GetChannel

func (ctx *ChanContext) GetChannel(module string) ChanMsgType

getChannel return chan

func (*ChanContext) NewChannel

func (ctx *ChanContext) NewChannel() ChanMsgType

type ChanMsgType

type ChanMsgType chan interface{}

Jump to

Keyboard shortcuts

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