Documentation
¶
Index ¶
- Constants
- type EventStorer
- type Module
- func (m *Module) HTTPHandler() module.HTTPIngestionHandler
- func (m *Module) Name() string
- func (m *Module) PreviewMapper() event.PreviewMapper
- func (m *Module) RegisterProtectedRoutes(mux *http.ServeMux, protect func(http.Handler) http.Handler)
- func (m *Module) RegisterRoutes(mux *http.ServeMux, store event.Store)
- func (m *Module) SetEventService(es EventStorer)
- func (m *Module) Type() string
Constants ¶
const ( LockActive = "active" LockContinued = "continued" LockStopped = "stopped" )
Pause states of a ray()->pause() lock, as the UI sees them in the create_lock payload's content.state.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventStorer ¶ added in v2.14.0
EventStorer stores and broadcasts events (the HTTP event service).
type Module ¶
type Module struct {
module.BaseModule
// contains filtered or unexported fields
}
func (*Module) HTTPHandler ¶
func (m *Module) HTTPHandler() module.HTTPIngestionHandler
func (*Module) PreviewMapper ¶
func (m *Module) PreviewMapper() event.PreviewMapper
func (*Module) RegisterProtectedRoutes ¶ added in v2.14.0
func (m *Module) RegisterProtectedRoutes(mux *http.ServeMux, protect func(http.Handler) http.Handler)
RegisterProtectedRoutes adds the UI's Continue / Stop execution, called over the WebSocket RPC as post:api/ray/locks/{name}.
func (*Module) RegisterRoutes ¶
func (*Module) SetEventService ¶ added in v2.14.0
func (m *Module) SetEventService(es EventStorer)
SetEventService lets the module save a pause's state into its event.