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 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