Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitData ¶
type InitData struct { initialisation.InitData // the current state that init is in Status string // if non-nil, this is called everytime the status changes OnStatusChanged func(string) Loaded chan struct{} // map of query name to resolved query (key is the query text for command line queries) Queries map[string]*modconfig.ResolvedQuery // contains filtered or unexported fields }
func NewInitData ¶
NewInitData returns a new InitData object It also starts an asynchronous population of the object InitData.Done closes after asynchronous initialization completes
type QueryInitStatusHook ¶ added in v0.19.0
type QueryInitStatusHook struct {
// contains filtered or unexported fields
}
func NewQueryInitStatusHook ¶ added in v0.19.0
func NewQueryInitStatusHook(initData *InitData) *QueryInitStatusHook
func (*QueryInitStatusHook) Done ¶ added in v0.19.0
func (h *QueryInitStatusHook) Done()
func (*QueryInitStatusHook) Message ¶ added in v0.19.0
func (h *QueryInitStatusHook) Message(...string)
func (*QueryInitStatusHook) SetStatus ¶ added in v0.19.0
func (h *QueryInitStatusHook) SetStatus(status string)
Click to show internal directories.
Click to hide internal directories.