Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StateToWebView ¶ added in v0.7.11
func StateToWebView(s store.EngineState) webview.View
Types ¶
type AssetServer ¶ added in v0.7.11
type AssetServer interface { http.Handler Serve(ctx context.Context) error Teardown(ctx context.Context) }
TODO(nick): This should probably be in its own package, now that it's shared.
func NewFakeAssetServer ¶ added in v0.7.11
func NewFakeAssetServer() AssetServer
func ProvideAssetServer ¶ added in v0.7.11
func ProvideAssetServer(ctx context.Context, webMode model.WebMode, webVersion model.WebVersion, devPort model.WebDevPort) (AssetServer, error)
type HeadsUpServer ¶
type HeadsUpServer struct {
// contains filtered or unexported fields
}
func ProvideHeadsUpServer ¶
func ProvideHeadsUpServer(store *store.Store, assetServer AssetServer, analytics analytics.Analytics) HeadsUpServer
func (HeadsUpServer) HandleAnalytics ¶ added in v0.7.12
func (s HeadsUpServer) HandleAnalytics(w http.ResponseWriter, req *http.Request)
func (HeadsUpServer) Router ¶
func (s HeadsUpServer) Router() http.Handler
func (HeadsUpServer) ViewJSON ¶
func (s HeadsUpServer) ViewJSON(w http.ResponseWriter, req *http.Request)
func (HeadsUpServer) ViewWebsocket ¶
func (s HeadsUpServer) ViewWebsocket(w http.ResponseWriter, req *http.Request)
type HeadsUpServerController ¶ added in v0.7.11
type HeadsUpServerController struct {
// contains filtered or unexported fields
}
func ProvideHeadsUpServerController ¶ added in v0.7.11
func ProvideHeadsUpServerController(port model.WebPort, hudServer HeadsUpServer, assetServer AssetServer) *HeadsUpServerController
func (*HeadsUpServerController) OnChange ¶ added in v0.7.11
func (s *HeadsUpServerController) OnChange(ctx context.Context, st store.RStore)
func (*HeadsUpServerController) Teardown ¶ added in v0.7.11
func (s *HeadsUpServerController) Teardown(ctx context.Context)
type WebsocketSubscriber ¶
type WebsocketSubscriber struct {
// contains filtered or unexported fields
}
func NewWebsocketSubscriber ¶
func NewWebsocketSubscriber(conn *websocket.Conn) WebsocketSubscriber
Click to show internal directories.
Click to hide internal directories.