Documentation ¶
Index ¶
- Constants
- type FakeHud
- func (h *FakeHud) Close()
- func (h *FakeHud) OnChange(ctx context.Context, st *store.Store)
- func (h *FakeHud) Refresh(ctx context.Context)
- func (h *FakeHud) Run(ctx context.Context, st *store.Store, refreshInterval time.Duration) error
- func (h *FakeHud) SetNarrationMessage(ctx context.Context, msg string)
- func (h *FakeHud) Update(v view.View) error
- type HeadsUpDisplay
- type Hud
- func (h *Hud) Close()
- func (h *Hud) OnChange(ctx context.Context, st *store.Store)
- func (h *Hud) Refresh(ctx context.Context)
- func (h *Hud) Run(ctx context.Context, st *store.Store, refreshRate time.Duration) error
- func (h *Hud) SetNarrationMessage(ctx context.Context, msg string)
- func (h *Hud) Update(v view.View) error
- type ReadyEvent
- type Renderer
- type ServerAdapter
- type ShowErrorAction
Constants ¶
View Source
const DefaultRefreshInterval = 1 * time.Second
The main loop ensures the HUD updates at least this often
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeHud ¶
type FakeHud struct { LastView view.View Updates chan view.View Canceled bool Closed bool // contains filtered or unexported fields }
func NewFakeHud ¶
func NewFakeHud() *FakeHud
func (*FakeHud) SetNarrationMessage ¶
type HeadsUpDisplay ¶
type HeadsUpDisplay interface { store.Subscriber Run(ctx context.Context, st *store.Store, refreshRate time.Duration) error Update(v view.View) error Close() SetNarrationMessage(ctx context.Context, msg string) }
func NewDefaultHeadsUpDisplay ¶
func NewDefaultHeadsUpDisplay() (HeadsUpDisplay, error)
type Hud ¶
type Hud struct {
// contains filtered or unexported fields
}
func (*Hud) SetNarrationMessage ¶
type ReadyEvent ¶
type ReadyEvent struct {
// contains filtered or unexported fields
}
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer() *Renderer
type ServerAdapter ¶
type ServerAdapter struct {
// contains filtered or unexported fields
}
func (*ServerAdapter) Close ¶
func (a *ServerAdapter) Close()
func (*ServerAdapter) ConnectHud ¶
func (a *ServerAdapter) ConnectHud(stream proto.Hud_ConnectHudServer) error
type ShowErrorAction ¶
type ShowErrorAction struct { // 1-based index of resource whose log should be printed ResourceNumber int }
func NewShowErrorAction ¶
func NewShowErrorAction(resourceNumber int) ShowErrorAction
func (ShowErrorAction) Action ¶
func (ShowErrorAction) Action()
Click to show internal directories.
Click to hide internal directories.