dotpath

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 DChDotPath

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

DChDotPath is a demand channel

func MakeDemandDotPathBuff

func MakeDemandDotPathBuff(cap int) *DChDotPath

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

func MakeDemandDotPathChan

func MakeDemandDotPathChan() *DChDotPath

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

func (*DChDotPath) ProvideDotPath

func (c *DChDotPath) ProvideDotPath(dat *dotpath.DotPath)

ProvideDotPath is the send function - aka "MyKind <- some DotPath"

func (*DChDotPath) RequestDotPath

func (c *DChDotPath) RequestDotPath() (dat *dotpath.DotPath)

RequestDotPath is the receive function - aka "some DotPath <- MyKind"

func (*DChDotPath) TryDotPath

func (c *DChDotPath) TryDotPath() (dat *dotpath.DotPath, open bool)

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

type DotPathChan

type DotPathChan interface {
	DotPathROnlyChan // aka "<-chan" - receive only
	DotPathSOnlyChan // aka "chan<-" - send only
}

DotPathChan represents a bidirectional channel

type DotPathROnlyChan

type DotPathROnlyChan interface {
	RequestDotPath() (dat *dotpath.DotPath)        // the receive function - aka "MyDotPath := <-MyDotPathROnlyChan"
	TryDotPath() (dat *dotpath.DotPath, open bool) // the multi-valued comma-ok receive function - aka "MyDotPath, ok := <-MyDotPathROnlyChan"
}

DotPathROnlyChan represents a receive-only channel

type DotPathSOnlyChan

type DotPathSOnlyChan interface {
	ProvideDotPath(dat *dotpath.DotPath) // the send function - aka "MyKind <- some DotPath"
}

DotPathSOnlyChan represents a send-only channel

type SChDotPath

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

SChDotPath is a supply channel

func MakeSupplyDotPathBuff

func MakeSupplyDotPathBuff(cap int) *SChDotPath

MakeSupplyDotPathBuff returns a (pointer to a) fresh buffered (with capacity cap) supply channel

func MakeSupplyDotPathChan

func MakeSupplyDotPathChan() *SChDotPath

MakeSupplyDotPathChan returns a (pointer to a) fresh unbuffered supply channel

func (*SChDotPath) ProvideDotPath

func (c *SChDotPath) ProvideDotPath(dat *dotpath.DotPath)

ProvideDotPath is the send function - aka "MyKind <- some DotPath"

func (*SChDotPath) RequestDotPath

func (c *SChDotPath) RequestDotPath() (dat *dotpath.DotPath)

RequestDotPath is the receive function - aka "some DotPath <- MyKind"

func (*SChDotPath) TryDotPath

func (c *SChDotPath) TryDotPath() (dat *dotpath.DotPath, open bool)

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

Jump to

Keyboard shortcuts

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