channel

package
v0.0.0-...-11d313d Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var G_ChannelD = NewChannelMgr()

Functions

func NewChannelMgr

func NewChannelMgr() (d *mgr)

Types

type Channel

type Channel interface {
	SetBirth(block string)
	GetBirth() string
	GetBirthUint64() uint64
	PopSoln() (Soln, error)
	PopStop() (Soln, error)
	GetChannelID() ChannelID
}

func StartChannel

func StartChannel() (chnl Channel, er error)

type Chnl

type Chnl struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Chnl) GetBirth

func (c *Chnl) GetBirth() (b string)

func (*Chnl) GetBirthUint64

func (c *Chnl) GetBirthUint64() (b uint64)

func (*Chnl) GetChannelID

func (c *Chnl) GetChannelID() (cid ChannelID)

func (*Chnl) PopSoln

func (c *Chnl) PopSoln() (s Soln, er error)

func (*Chnl) PopStop

func (c *Chnl) PopStop() (s Soln, er error)

func (*Chnl) SetBirth

func (c *Chnl) SetBirth(blockNum string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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