lsm

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 DChLSM

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

DChLSM is a demand channel

func MakeDemandLSMBuff

func MakeDemandLSMBuff(cap int) *DChLSM

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

func MakeDemandLSMChan

func MakeDemandLSMChan() *DChLSM

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

func (*DChLSM) ProvideLSM

func (c *DChLSM) ProvideLSM(dat *lsm.LazyStringerMap)

ProvideLSM is the send function - aka "MyKind <- some LSM"

func (*DChLSM) RequestLSM

func (c *DChLSM) RequestLSM() (dat *lsm.LazyStringerMap)

RequestLSM is the receive function - aka "some LSM <- MyKind"

func (*DChLSM) TryLSM

func (c *DChLSM) TryLSM() (dat *lsm.LazyStringerMap, open bool)

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

type LSMChan

type LSMChan interface {
	LSMROnlyChan // aka "<-chan" - receive only
	LSMSOnlyChan // aka "chan<-" - send only
}

LSMChan represents a bidirectional channel

type LSMROnlyChan

type LSMROnlyChan interface {
	RequestLSM() (dat *lsm.LazyStringerMap)        // the receive function - aka "MyLSM := <-MyLSMROnlyChan"
	TryLSM() (dat *lsm.LazyStringerMap, open bool) // the multi-valued comma-ok receive function - aka "MyLSM, ok := <-MyLSMROnlyChan"
}

LSMROnlyChan represents a receive-only channel

type LSMSOnlyChan

type LSMSOnlyChan interface {
	ProvideLSM(dat *lsm.LazyStringerMap) // the send function - aka "MyKind <- some LSM"
}

LSMSOnlyChan represents a send-only channel

type SChLSM

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

SChLSM is a supply channel

func MakeSupplyLSMBuff

func MakeSupplyLSMBuff(cap int) *SChLSM

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

func MakeSupplyLSMChan

func MakeSupplyLSMChan() *SChLSM

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

func (*SChLSM) ProvideLSM

func (c *SChLSM) ProvideLSM(dat *lsm.LazyStringerMap)

ProvideLSM is the send function - aka "MyKind <- some LSM"

func (*SChLSM) RequestLSM

func (c *SChLSM) RequestLSM() (dat *lsm.LazyStringerMap)

RequestLSM is the receive function - aka "some LSM <- MyKind"

func (*SChLSM) TryLSM

func (c *SChLSM) TryLSM() (dat *lsm.LazyStringerMap, open bool)

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

Jump to

Keyboard shortcuts

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