Documentation
¶
Index ¶
- type Advice
- type Context
- func Make[In, Out any](done <-chan Done, monitor chan<- Advice, in <-chan In, out chan<- Out) *Context[In, Out]
- func With[OldIn, OldOut, In, Out any](c *Context[OldIn, OldOut], in chan In, out chan Out) *Context[In, Out]
- func WithIn[OldIn, Out, In any](c *Context[OldIn, Out], in chan In) *Context[In, Out]
- func WithOut[In, OldOut, Out any](c *Context[In, OldOut], out chan Out) *Context[In, Out]
- func (c *Context[In, Out]) Advise(a Advice) bool
- func (c *Context[_, _]) Debugf(format string, v ...any) bool
- func (c *Context[_, _]) Error(err error) bool
- func (c *Context[_, _]) Errorf(format string, v ...any) bool
- func (c *Context[_, _]) Fatal(err error) bool
- func (c *Context[_, _]) Fatalf(format string, v ...any) bool
- func (c *Context[In, Out]) FetchMessage() (In, bool)
- func (c *Context[In, Out]) ForwardResult(res Out) bool
- func (c *Context[In, Out]) IsDone() bool
- type Debug
- type Done
- type Error
- type Fatal
- type Stop
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context[In, Out any] struct { Done <-chan Done Monitor chan<- Advice In <-chan In Out chan<- Out }
func (*Context[In, Out]) FetchMessage ¶
func (*Context[In, Out]) ForwardResult ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is Advice that reports a recoverable error to the Stream.
Click to show internal directories.
Click to hide internal directories.