Documentation
¶
Index ¶
- type Handler
- func (h *Handler) AutoConnect(period time.Duration) error
- func (h *Handler) AutoUpdate(period time.Duration) error
- func (h *Handler) ConnectedDeviceUUIDs() []string
- func (h *Handler) Serve(addr string) error
- func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAll() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AutoConnect ¶ added in v0.3.3
AutoConnect configures the handler to perform periodic auto-discovery of all the cast devices & groups. It's intended to be called just after `NewHandler()`, before the handler is registered in the server.
func (*Handler) AutoUpdate ¶ added in v0.3.3
AutoUpdate configures the handler to perform auto-update of all the cast devices & groups. It's intended to be called just after `NewHandler()`, before the handler is registered in the server. Thanks to AutoUpdate, /status and /statuses returns relatively recent status 'instantly'.
func (*Handler) ConnectedDeviceUUIDs ¶ added in v0.3.3
Click to show internal directories.
Click to hide internal directories.