Documentation
¶
Index ¶
- type Sink
- type Source
- func (s *Source) Ack(m frizzle.Msg) error
- func (s *Source) Close() error
- func (s *Source) Fail(m frizzle.Msg) error
- func (s *Source) Failed() []frizzle.Msg
- func (s *Source) Input() chan<- frizzle.Msg
- func (s *Source) Receive() <-chan frizzle.Msg
- func (s *Source) Stop() error
- func (s *Source) UnAcked() []frizzle.Msg
- func (s *Source) UnAckedCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink demonstrates the basic usage of a Sink (primarily for example code)
func InitSink ¶
InitSink initializes a basic Sink that logs a map of what messages have been sent to which destinations.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source demonstrates the basic functionality of a Source (primarily for use in example code)
func InitSource ¶
InitSource initializes a basic Source populated with the string values in `basic_values` from provided viper. Close() will block until Ack() or Fail() has been called on all values.
func (*Source) Failed ¶
Failed reports all Msgs which were Failed for the provided basic Source used for demonstrating functionality in the Example()
func (*Source) UnAcked ¶
UnAcked reports all Msgs which are currently unAcked for the provided basic Source used for demonstrating functionality in the Example()
func (*Source) UnAckedCount ¶
UnAckedCount reports the count of UnAcked Msgs without generating a slice