Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpStackUpdate EventOp = "op.stackupdate" OpSet EventOp = "op.set" ControlAck ControlOp = "control.ack" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandleOpts ¶
type Handler ¶
type Handler interface {
// Key MUST be a pure function. E.g. "l"
Key() string
// Label MUST be a pure function. E.g. "stream logs"
Label(bool) 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)
}
Click to show internal directories.
Click to hide internal directories.