Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller[T any] struct { *ControllerOption // contains filtered or unexported fields }
func New ¶
func New[T any](opts ...Option) *Controller[T]
func (*Controller[T]) Err ¶
func (c *Controller[T]) Err() error
func (*Controller[T]) From ¶
func (c *Controller[T]) From(source <-chan T) *Controller[T]
func (*Controller[T]) Handle ¶
func (c *Controller[T]) Handle(handler func(T)) *Controller[T]
func (*Controller[T]) Run ¶
func (c *Controller[T]) Run() error
type ControllerOption ¶
type ControllerOption struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.