server

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const TiltAlertsDomain = "alerts.tilt.dev"

Variables

This section is empty.

Functions

func MaybeSendToTriggerQueue added in v0.8.10

func MaybeSendToTriggerQueue(st store.RStore, name string) error

Types

type AppendToTriggerQueueAction added in v0.8.10

type AppendToTriggerQueueAction struct {
	Name model.ManifestName
}

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(store *store.Store, assetServer assets.Server, analytics *tiltanalytics.TiltAnalytics, sailCli client.SailClient, tftClient tft.Client) *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) HandleNewAlert added in v0.9.7

func (s *HeadsUpServer) HandleNewAlert(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) 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) 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 assets.Server, webURL model.WebURL, noBrowser model.NoBrowser) *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 NewAlertResponse added in v0.9.7

type NewAlertResponse struct {
	Url string `json:"url"`
}

type WebsocketConn added in v0.8.2

type WebsocketConn interface {
	NextReader() (int, io.Reader, error)
	Close() error
	WriteJSON(v interface{}) error
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL