Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultRequestBurst = 10 DefaultRequestRate = rate.Every(time.Second / 2) )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Notifications ¶
type Notifications struct {
MsgReaderErr chan error
// Client
ClientOnConnect chan *snapcast.ClientOnConnect
ClientOnDisconnect chan *snapcast.ClientOnDisconnect
ClientOnVolumeChanged chan *snapcast.ClientOnVolumeChanged
ClientOnLatencyChanged chan *snapcast.ClientOnLatencyChanged
ClientOnNameChanged chan *snapcast.ClientOnNameChanged
// Group
GroupOnMute chan *snapcast.GroupOnMute
GroupOnStreamChanged chan *snapcast.GroupOnStreamChanged
GroupOnNameChanged chan *snapcast.GroupOnNameChanged
// Stream
StreamOnUpdate chan *snapcast.StreamOnUpdate
StreamOnProperties chan *snapcast.StreamOnProperties
// Server
ServerOnUpdate chan *snapcast.ServerOnUpdate
}
type Options ¶
type Options struct {
Host string
RateLimiter *rate.Limiter
// if secure then https & wss and used else http & ws protocols
SecureConnection bool
// HTTPClient is used for JSON-RPC requests and for the WebSocket upgrade
// handshake. Supply an instrumented client (e.g. otelhttp) to add tracing.
// If nil, a default client is used.
HTTPClient *http.Client
}
Click to show internal directories.
Click to hide internal directories.