Documentation ¶
Index ¶
- Constants
- Variables
- func ProvideTiltServerOptions(ctx context.Context, host model.WebHost, port model.WebPort, ...) (*start.TiltServerOptions, error)
- func SendToTriggerQueue(st store.RStore, name string, buildReason model.BuildReason) error
- func StreamLogs(ctx context.Context, follow bool, url model.WebURL, resources []string, ...) error
- type AppendToTriggerQueueAction
- type HeadsUpServer
- func (s *HeadsUpServer) DispatchAction(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) DumpEngineJSON(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleAnalytics(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleAnalyticsOpt(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleMetricsOpt(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleNewSnapshot(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleOverrideTriggerMode(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleSetTiltfileArgs(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) HandleTrigger(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) Router() http.Handler
- func (s *HeadsUpServer) SnapshotJSON(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) ViewJSON(w http.ResponseWriter, req *http.Request)
- func (s *HeadsUpServer) ViewWebsocket(w http.ResponseWriter, req *http.Request)
- type HeadsUpServerController
- type LogStreamer
- type OverrideTriggerModeAction
- type SetTiltfileArgsAction
- type ViewHandler
- type WebsocketConn
- type WebsocketReader
- type WebsocketSubscriber
Constants ¶
View Source
const TiltTokenCookieName = "Tilt-Token"
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideTiltServerOptions, ProvideHeadsUpServer, ProvideHeadsUpServerController, )
Functions ¶
func ProvideTiltServerOptions ¶ added in v0.18.10
func SendToTriggerQueue ¶ added in v0.10.16
Types ¶
type AppendToTriggerQueueAction ¶ added in v0.8.10
type AppendToTriggerQueueAction struct { Name model.ManifestName Reason model.BuildReason }
func (AppendToTriggerQueueAction) Action ¶ added in v0.8.10
func (AppendToTriggerQueueAction) Action()
type HeadsUpServer ¶
type HeadsUpServer struct {
// contains filtered or unexported fields
}
func ProvideHeadsUpServer ¶
func ProvideHeadsUpServer( ctx context.Context, store *store.Store, assetServer assets.Server, analytics *tiltanalytics.TiltAnalytics, metrics *metrics.ModeController, uploader cloud.SnapshotUploader) (*HeadsUpServer, error)
func (*HeadsUpServer) DispatchAction ¶ added in v0.10.8
func (s *HeadsUpServer) DispatchAction(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) DumpEngineJSON ¶ added in v0.10.18
func (s *HeadsUpServer) DumpEngineJSON(w http.ResponseWriter, req *http.Request)
Dump the JSON engine over http. Only intended for 'tilt dump engine'.
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) HandleMetricsOpt ¶ added in v0.17.13
func (s *HeadsUpServer) HandleMetricsOpt(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) HandleNewSnapshot ¶ added in v0.10.4
func (s *HeadsUpServer) HandleNewSnapshot(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) HandleOverrideTriggerMode ¶ added in v0.18.4
func (s *HeadsUpServer) HandleOverrideTriggerMode(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) HandleSetTiltfileArgs ¶ added in v0.10.25
func (s *HeadsUpServer) HandleSetTiltfileArgs(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) HandleTrigger ¶ added in v0.8.10
func (s *HeadsUpServer) HandleTrigger(w http.ResponseWriter, req *http.Request)
func (*HeadsUpServer) Router ¶
func (s *HeadsUpServer) Router() http.Handler
func (*HeadsUpServer) SnapshotJSON ¶ added in v0.10.5
func (s *HeadsUpServer) SnapshotJSON(w http.ResponseWriter, req *http.Request)
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, apiServerOptions *start.TiltServerOptions, hudServer *HeadsUpServer, assetServer assets.Server, webURL model.WebURL) *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.8.2
func (s *HeadsUpServerController) TearDown(ctx context.Context)
type LogStreamer ¶ added in v0.17.0
type LogStreamer struct {
// contains filtered or unexported fields
}
func NewLogStreamer ¶ added in v0.17.0
func NewLogStreamer(resources []string, p *hud.IncrementalPrinter) *LogStreamer
func (*LogStreamer) Handle ¶ added in v0.17.0
func (ls *LogStreamer) Handle(v proto_webview.View) error
type OverrideTriggerModeAction ¶ added in v0.18.4
type OverrideTriggerModeAction struct { ManifestNames []model.ManifestName TriggerMode model.TriggerMode }
TODO: a way to clear an override
func (OverrideTriggerModeAction) Action ¶ added in v0.18.4
func (OverrideTriggerModeAction) Action()
type SetTiltfileArgsAction ¶ added in v0.10.25
type SetTiltfileArgsAction struct {
Args []string
}
func (SetTiltfileArgsAction) Action ¶ added in v0.10.25
func (SetTiltfileArgsAction) Action()
type ViewHandler ¶ added in v0.17.0
type ViewHandler interface {
Handle(v proto_webview.View) error
}
type WebsocketConn ¶ added in v0.8.2
type WebsocketReader ¶ added in v0.17.0
type WebsocketReader struct {
// contains filtered or unexported fields
}
type WebsocketSubscriber ¶
type WebsocketSubscriber struct {
// contains filtered or unexported fields
}
func NewWebsocketSubscriber ¶
func NewWebsocketSubscriber(ctx context.Context, 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)
Click to show internal directories.
Click to hide internal directories.