 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
	EventID      string
	Operation    EventOp
	StackUpdate  *observers.StackUpdateEvent
	CurrentState string
}
    type HandleOpts ¶
type Handler ¶
type Handler interface {
	// Key MUST be a pure function. E.g. "l"
	Key() string
	// Must only leave when chan Event is closed. OpSet events must be Acknowledged by writing to Control.
	Handle(context.Context, chan Event, chan<- Control)
	// The first state is the initial state as well.
	States() []HandlerState
}
    type HandlerState ¶ added in v0.0.81
 Click to show internal directories. 
   Click to hide internal directories.