http

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

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 NewHandler(verbose bool) *Handler

func (*Handler) AutoConnect added in v0.3.3

func (h *Handler) AutoConnect(period time.Duration) error

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

func (h *Handler) AutoUpdate(period time.Duration) error

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

func (h *Handler) ConnectedDeviceUUIDs() []string

func (*Handler) Serve

func (h *Handler) Serve(addr string) error

func (*Handler) ServeHTTP added in v0.2.10

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateAll added in v0.3.3

func (h *Handler) UpdateAll() error

Jump to

Keyboard shortcuts

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