list

package
v0.0.0-...-5012a73 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chan

type Chan interface {
	ROnlyChan // aka "<-chan" - receive only
	SOnlyChan // aka "chan<-" - send only
}

Chan represents a bidirectional channel

type DCh

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

DCh is a demand channel

func MakeDemandBuff

func MakeDemandBuff(cap int) *DCh

MakeDemandBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel

func MakeDemandChan

func MakeDemandChan() *DCh

MakeDemandChan returns a (pointer to a) fresh unbuffered demand channel

func (*DCh) Provide

func (c *DCh) Provide(dat *list.List)

Provide is the send function - aka "MyKind <- some "

func (*DCh) Request

func (c *DCh) Request() (dat *list.List)

Request is the receive function - aka "some <- MyKind"

func (*DCh) Try

func (c *DCh) Try() (dat *list.List, open bool)

Try is the comma-ok multi-valued form of Request and reports whether a received value was sent before the channel was closed.

type DChElement

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

DChElement is a demand channel

func MakeDemandElementBuff

func MakeDemandElementBuff(cap int) *DChElement

MakeDemandElementBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel

func MakeDemandElementChan

func MakeDemandElementChan() *DChElement

MakeDemandElementChan returns a (pointer to a) fresh unbuffered demand channel

func (*DChElement) ProvideElement

func (c *DChElement) ProvideElement(dat *list.Element)

ProvideElement is the send function - aka "MyKind <- some Element"

func (*DChElement) RequestElement

func (c *DChElement) RequestElement() (dat *list.Element)

RequestElement is the receive function - aka "some Element <- MyKind"

func (*DChElement) TryElement

func (c *DChElement) TryElement() (dat *list.Element, open bool)

TryElement is the comma-ok multi-valued form of RequestElement and reports whether a received value was sent before the Element channel was closed.

type DChElementS

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

DChElementS is a demand channel

func MakeDemandElementSBuff

func MakeDemandElementSBuff(cap int) *DChElementS

MakeDemandElementSBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel

func MakeDemandElementSChan

func MakeDemandElementSChan() *DChElementS

MakeDemandElementSChan returns a (pointer to a) fresh unbuffered demand channel

func (*DChElementS) ProvideElementS

func (c *DChElementS) ProvideElementS(dat []*list.Element)

ProvideElementS is the send function - aka "MyKind <- some ElementS"

func (*DChElementS) RequestElementS

func (c *DChElementS) RequestElementS() (dat []*list.Element)

RequestElementS is the receive function - aka "some ElementS <- MyKind"

func (*DChElementS) TryElementS

func (c *DChElementS) TryElementS() (dat []*list.Element, open bool)

TryElementS is the comma-ok multi-valued form of RequestElementS and reports whether a received value was sent before the ElementS channel was closed.

type DChListS

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

DChListS is a demand channel

func MakeDemandListSBuff

func MakeDemandListSBuff(cap int) *DChListS

MakeDemandListSBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel

func MakeDemandListSChan

func MakeDemandListSChan() *DChListS

MakeDemandListSChan returns a (pointer to a) fresh unbuffered demand channel

func (*DChListS) ProvideListS

func (c *DChListS) ProvideListS(dat []*list.List)

ProvideListS is the send function - aka "MyKind <- some ListS"

func (*DChListS) RequestListS

func (c *DChListS) RequestListS() (dat []*list.List)

RequestListS is the receive function - aka "some ListS <- MyKind"

func (*DChListS) TryListS

func (c *DChListS) TryListS() (dat []*list.List, open bool)

TryListS is the comma-ok multi-valued form of RequestListS and reports whether a received value was sent before the ListS channel was closed.

type ElementChan

type ElementChan interface {
	ElementROnlyChan // aka "<-chan" - receive only
	ElementSOnlyChan // aka "chan<-" - send only
}

ElementChan represents a bidirectional channel

type ElementROnlyChan

type ElementROnlyChan interface {
	RequestElement() (dat *list.Element)        // the receive function - aka "MyElement := <-MyElementROnlyChan"
	TryElement() (dat *list.Element, open bool) // the multi-valued comma-ok receive function - aka "MyElement, ok := <-MyElementROnlyChan"
}

ElementROnlyChan represents a receive-only channel

type ElementSChan

type ElementSChan interface {
	ElementSROnlyChan // aka "<-chan" - receive only
	ElementSSOnlyChan // aka "chan<-" - send only
}

ElementSChan represents a bidirectional channel

type ElementSOnlyChan

type ElementSOnlyChan interface {
	ProvideElement(dat *list.Element) // the send function - aka "MyKind <- some Element"
}

ElementSOnlyChan represents a send-only channel

type ElementSROnlyChan

type ElementSROnlyChan interface {
	RequestElementS() (dat []*list.Element)        // the receive function - aka "MyElementS := <-MyElementSROnlyChan"
	TryElementS() (dat []*list.Element, open bool) // the multi-valued comma-ok receive function - aka "MyElementS, ok := <-MyElementSROnlyChan"
}

ElementSROnlyChan represents a receive-only channel

type ElementSSOnlyChan

type ElementSSOnlyChan interface {
	ProvideElementS(dat []*list.Element) // the send function - aka "MyKind <- some ElementS"
}

ElementSSOnlyChan represents a send-only channel

type ListSChan

type ListSChan interface {
	ListSROnlyChan // aka "<-chan" - receive only
	ListSSOnlyChan // aka "chan<-" - send only
}

ListSChan represents a bidirectional channel

type ListSROnlyChan

type ListSROnlyChan interface {
	RequestListS() (dat []*list.List)        // the receive function - aka "MyListS := <-MyListSROnlyChan"
	TryListS() (dat []*list.List, open bool) // the multi-valued comma-ok receive function - aka "MyListS, ok := <-MyListSROnlyChan"
}

ListSROnlyChan represents a receive-only channel

type ListSSOnlyChan

type ListSSOnlyChan interface {
	ProvideListS(dat []*list.List) // the send function - aka "MyKind <- some ListS"
}

ListSSOnlyChan represents a send-only channel

type ROnlyChan

type ROnlyChan interface {
	Request() (dat *list.List)        // the receive function - aka "My := <-MyROnlyChan"
	Try() (dat *list.List, open bool) // the multi-valued comma-ok receive function - aka "My, ok := <-MyROnlyChan"
}

ROnlyChan represents a receive-only channel

type SOnlyChan

type SOnlyChan interface {
	Provide(dat *list.List) // the send function - aka "MyKind <- some "
}

SOnlyChan represents a send-only channel

Jump to

Keyboard shortcuts

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