os

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 DChFile

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

DChFile is a demand channel

func MakeDemandFileBuff

func MakeDemandFileBuff(cap int) *DChFile

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

func MakeDemandFileChan

func MakeDemandFileChan() *DChFile

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

func (*DChFile) ProvideFile

func (c *DChFile) ProvideFile(dat *os.File)

ProvideFile is the send function - aka "MyKind <- some File"

func (*DChFile) RequestFile

func (c *DChFile) RequestFile() (dat *os.File)

RequestFile is the receive function - aka "some File <- MyKind"

func (*DChFile) TryFile

func (c *DChFile) TryFile() (dat *os.File, open bool)

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

type DChFileInfo

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

DChFileInfo is a demand channel

func MakeDemandFileInfoBuff

func MakeDemandFileInfoBuff(cap int) *DChFileInfo

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

func MakeDemandFileInfoChan

func MakeDemandFileInfoChan() *DChFileInfo

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

func (*DChFileInfo) ProvideFileInfo

func (c *DChFileInfo) ProvideFileInfo(dat os.FileInfo)

ProvideFileInfo is the send function - aka "MyKind <- some FileInfo"

func (*DChFileInfo) RequestFileInfo

func (c *DChFileInfo) RequestFileInfo() (dat os.FileInfo)

RequestFileInfo is the receive function - aka "some FileInfo <- MyKind"

func (*DChFileInfo) TryFileInfo

func (c *DChFileInfo) TryFileInfo() (dat os.FileInfo, open bool)

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

type DChSignal

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

DChSignal is a demand channel

func MakeDemandSignalBuff

func MakeDemandSignalBuff(cap int) *DChSignal

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

func MakeDemandSignalChan

func MakeDemandSignalChan() *DChSignal

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

func (*DChSignal) ProvideSignal

func (c *DChSignal) ProvideSignal(dat os.Signal)

ProvideSignal is the send function - aka "MyKind <- some Signal"

func (*DChSignal) RequestSignal

func (c *DChSignal) RequestSignal() (dat os.Signal)

RequestSignal is the receive function - aka "some Signal <- MyKind"

func (*DChSignal) TrySignal

func (c *DChSignal) TrySignal() (dat os.Signal, open bool)

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

type FileChan

type FileChan interface {
	FileROnlyChan // aka "<-chan" - receive only
	FileSOnlyChan // aka "chan<-" - send only
}

FileChan represents a bidirectional channel

type FileInfoChan

type FileInfoChan interface {
	FileInfoROnlyChan // aka "<-chan" - receive only
	FileInfoSOnlyChan // aka "chan<-" - send only
}

FileInfoChan represents a bidirectional channel

type FileInfoROnlyChan

type FileInfoROnlyChan interface {
	RequestFileInfo() (dat os.FileInfo)        // the receive function - aka "MyFileInfo := <-MyFileInfoROnlyChan"
	TryFileInfo() (dat os.FileInfo, open bool) // the multi-valued comma-ok receive function - aka "MyFileInfo, ok := <-MyFileInfoROnlyChan"
}

FileInfoROnlyChan represents a receive-only channel

type FileInfoSOnlyChan

type FileInfoSOnlyChan interface {
	ProvideFileInfo(dat os.FileInfo) // the send function - aka "MyKind <- some FileInfo"
}

FileInfoSOnlyChan represents a send-only channel

type FileROnlyChan

type FileROnlyChan interface {
	RequestFile() (dat *os.File)        // the receive function - aka "MyFile := <-MyFileROnlyChan"
	TryFile() (dat *os.File, open bool) // the multi-valued comma-ok receive function - aka "MyFile, ok := <-MyFileROnlyChan"
}

FileROnlyChan represents a receive-only channel

type FileSOnlyChan

type FileSOnlyChan interface {
	ProvideFile(dat *os.File) // the send function - aka "MyKind <- some File"
}

FileSOnlyChan represents a send-only channel

type SChFile

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

SChFile is a supply channel

func MakeSupplyFileBuff

func MakeSupplyFileBuff(cap int) *SChFile

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

func MakeSupplyFileChan

func MakeSupplyFileChan() *SChFile

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

func (*SChFile) ProvideFile

func (c *SChFile) ProvideFile(dat *os.File)

ProvideFile is the send function - aka "MyKind <- some File"

func (*SChFile) RequestFile

func (c *SChFile) RequestFile() (dat *os.File)

RequestFile is the receive function - aka "some File <- MyKind"

func (*SChFile) TryFile

func (c *SChFile) TryFile() (dat *os.File, open bool)

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

type SChFileInfo

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

SChFileInfo is a supply channel

func MakeSupplyFileInfoBuff

func MakeSupplyFileInfoBuff(cap int) *SChFileInfo

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

func MakeSupplyFileInfoChan

func MakeSupplyFileInfoChan() *SChFileInfo

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

func (*SChFileInfo) ProvideFileInfo

func (c *SChFileInfo) ProvideFileInfo(dat os.FileInfo)

ProvideFileInfo is the send function - aka "MyKind <- some FileInfo"

func (*SChFileInfo) RequestFileInfo

func (c *SChFileInfo) RequestFileInfo() (dat os.FileInfo)

RequestFileInfo is the receive function - aka "some FileInfo <- MyKind"

func (*SChFileInfo) TryFileInfo

func (c *SChFileInfo) TryFileInfo() (dat os.FileInfo, open bool)

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

type SChSignal

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

SChSignal is a supply channel

func MakeSupplySignalBuff

func MakeSupplySignalBuff(cap int) *SChSignal

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

func MakeSupplySignalChan

func MakeSupplySignalChan() *SChSignal

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

func (*SChSignal) ProvideSignal

func (c *SChSignal) ProvideSignal(dat os.Signal)

ProvideSignal is the send function - aka "MyKind <- some Signal"

func (*SChSignal) RequestSignal

func (c *SChSignal) RequestSignal() (dat os.Signal)

RequestSignal is the receive function - aka "some Signal <- MyKind"

func (*SChSignal) TrySignal

func (c *SChSignal) TrySignal() (dat os.Signal, open bool)

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

type SignalChan

type SignalChan interface {
	SignalROnlyChan // aka "<-chan" - receive only
	SignalSOnlyChan // aka "chan<-" - send only
}

SignalChan represents a bidirectional channel

type SignalROnlyChan

type SignalROnlyChan interface {
	RequestSignal() (dat os.Signal)        // the receive function - aka "MySignal := <-MySignalROnlyChan"
	TrySignal() (dat os.Signal, open bool) // the multi-valued comma-ok receive function - aka "MySignal, ok := <-MySignalROnlyChan"
}

SignalROnlyChan represents a receive-only channel

type SignalSOnlyChan

type SignalSOnlyChan interface {
	ProvideSignal(dat os.Signal) // the send function - aka "MyKind <- some Signal"
}

SignalSOnlyChan represents a send-only channel

Jump to

Keyboard shortcuts

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