Documentation ¶
Index ¶
- type AnalyticsOpter
- type HeadsUpServer
- func (s *HeadsUpServer) HandleAnalytics(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleAnalyticsOpt(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleResetRestarts(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleSail(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) Router() http.Handler
- func (s *HeadsUpServer) ViewJSON(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) ViewWebsocket(w http.ResponseWriter, req *http.Request)
- type HeadsUpServerController
- type WebsocketConn
- type WebsocketSubscriber
- type WriteToFileOpter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsOpter ¶ added in v0.8.4
An AnalyticsOpter can record a user's choice (opt-in or opt-out) in re: Tilt recording analytics.
func ProvideAnalyticsOpter ¶ added in v0.8.4
func ProvideAnalyticsOpter(st store.RStore) AnalyticsOpter
type HeadsUpServer ¶
type HeadsUpServer struct {
// contains filtered or unexported fields
}
func ProvideHeadsUpServer ¶
func ProvideHeadsUpServer(store *store.Store, assetServer assets.Server, analytics analytics.Analytics, sailCli client.SailClient, opter AnalyticsOpter) *HeadsUpServer
func (*HeadsUpServer) HandleAnalytics ¶ added in v0.7.12
func (s *HeadsUpServer) HandleAnalytics(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) HandleAnalyticsOpt ¶ added in v0.8.4
func (s *HeadsUpServer) HandleAnalyticsOpt(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) HandleResetRestarts ¶ added in v0.8.4
func (s *HeadsUpServer) HandleResetRestarts(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) HandleSail ¶ added in v0.8.2
func (s *HeadsUpServer) HandleSail(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.10
type HeadsUpServerController struct {
// contains filtered or unexported fields
}
func ProvideHeadsUpServerController ¶ added in v0.7.10
func ProvideHeadsUpServerController(port model.WebPort, hudServer *HeadsUpServer, assetServer assets.Server, webURL model.WebURL) *HeadsUpServerController
func (*HeadsUpServerController) OnChange ¶ added in v0.7.10
func (s *HeadsUpServerController) OnChange(ctx context.Context, st store.RStore)
func (*HeadsUpServerController) TearDown ¶ added in v0.8.2
func (s *HeadsUpServerController) TearDown(ctx context.Context)
type WebsocketConn ¶ added in v0.8.2
type WebsocketSubscriber ¶
type WebsocketSubscriber struct {
// contains filtered or unexported fields
}
func NewWebsocketSubscriber ¶
func NewWebsocketSubscriber(conn WebsocketConn) WebsocketSubscriber
func (WebsocketSubscriber) OnChange ¶
func (ws WebsocketSubscriber) OnChange(ctx context.Context, s store.RStore)
func (WebsocketSubscriber) Stream ¶
func (ws WebsocketSubscriber) Stream(ctx context.Context, store *store.Store)
Should be called exactly once. Consumes messages until the socket closes.
func (WebsocketSubscriber) TearDown ¶ added in v0.8.2
func (ws WebsocketSubscriber) TearDown(ctx context.Context)
type WriteToFileOpter ¶ added in v0.8.4
type WriteToFileOpter struct {
// contains filtered or unexported fields
}
func (*WriteToFileOpter) SetOptStr ¶ added in v0.8.4
func (o *WriteToFileOpter) SetOptStr(s string) error
SetOptStr takes the string of the user's choice in re: sending analytics (should correspond to "opt-in" or "opt-out") and records that choice on disk as dictated by the `analytics` package.
Click to show internal directories.
Click to hide internal directories.