Documentation ¶
Index ¶
- type Channel
- func (c *Channel) Close()
- func (c *Channel) IsEmpty() bool
- func (c *Channel) Pop() (r element.Record, ok bool)
- func (c *Channel) PopAll(onRecord func(element.Record) error) error
- func (c *Channel) Push(r element.Record) (n int, err error)
- func (c *Channel) PushAll(fetchRecord func() (element.Record, error)) error
- func (c *Channel) PushTerminate() (n int)
- func (c *Channel) Size() int
- func (c *Channel) StatsJSON() StatsJSON
- type Stats
- type StatsJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel represents a communication path or data flow.
func NewChannel ¶
NewChannel creates a new instance of a Channel.
func (*Channel) Pop ¶
Pop removes and returns a record from the Channel. If no records are present, it returns false.
func (*Channel) PopAll ¶
PopAll removes and returns multiple records from the Channel using the onRecord function.
func (*Channel) PushAll ¶
PushAll adds multiple records to the Channel using the fetchRecord function.
func (*Channel) PushTerminate ¶
PushTerminate adds a termination record to the Channel.
Click to show internal directories.
Click to hide internal directories.