Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DChTag ¶
type DChTag struct {
// contains filtered or unexported fields
}
DChTag is a demand channel
func MakeDemandTagBuff ¶
MakeDemandTagBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandTagChan ¶
func MakeDemandTagChan() *DChTag
MakeDemandTagChan returns a (pointer to a) fresh unbuffered demand channel
func (*DChTag) ProvideTag ¶
ProvideTag is the send function - aka "MyKind <- some Tag"
func (*DChTag) RequestTag ¶
RequestTag is the receive function - aka "some Tag <- MyKind"
type SChTag ¶
type SChTag struct {
// contains filtered or unexported fields
}
SChTag is a supply channel
func MakeSupplyTagBuff ¶
MakeSupplyTagBuff returns a (pointer to a) fresh buffered (with capacity cap) supply channel
func MakeSupplyTagChan ¶
func MakeSupplyTagChan() *SChTag
MakeSupplyTagChan returns a (pointer to a) fresh unbuffered supply channel
func (*SChTag) ProvideTag ¶
ProvideTag is the send function - aka "MyKind <- some Tag"
func (*SChTag) RequestTag ¶
RequestTag is the receive function - aka "some Tag <- MyKind"
type TagChan ¶
type TagChan interface { TagROnlyChan // aka "<-chan" - receive only TagSOnlyChan // aka "chan<-" - send only }
TagChan represents a bidirectional channel
type TagROnlyChan ¶
type TagROnlyChan interface { RequestTag() (dat *tag.TagAny) // the receive function - aka "MyTag := <-MyTagROnlyChan" TryTag() (dat *tag.TagAny, open bool) // the multi-valued comma-ok receive function - aka "MyTag, ok := <-MyTagROnlyChan" }
TagROnlyChan represents a receive-only channel
type TagSOnlyChan ¶
type TagSOnlyChan interface {
ProvideTag(dat *tag.TagAny) // the send function - aka "MyKind <- some Tag"
}
TagSOnlyChan represents a send-only channel