Documentation ¶
Index ¶
- func New() chik.Handler
- type Client
- type ClientVolume
- type Config
- type Group
- type GroupStreamChanged
- type ServerStatus
- type SimplifiedClient
- type SimplifiedGroup
- type SimplifiedServerStatus
- type SimplifiedStatus
- type SnapcastClientCommand
- type SnapcastGroupCommand
- type Status
- type Stream
- type URL
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Config Config `json:"config" mapstructure:"config"` Connected bool `json:"connected" mapstructure:"connected"` Host interface{} `json:"host" mapstructure:"host"` ID string `json:"id" mapstructure:"id"` LastSeen interface{} Snapclient interface{} }
Client is a snapcast client
type ClientVolume ¶
type Config ¶
type Config struct { Instance int `json:"instance" mapstructure:"instance"` Latency int `json:"latency" mapstructure:"latency"` Name string `json:"name" mapstructure:"name"` Volume Volume `json:"volume" mapstructure:"volume"` }
Config is the snapcast config
type GroupStreamChanged ¶
type ServerStatus ¶
type SimplifiedClient ¶ added in v1.8.1
type SimplifiedClient struct {
ID string `json:"id" mapstructure:"id"`
}
type SimplifiedGroup ¶ added in v1.8.1
type SimplifiedGroup struct { Clients []SimplifiedClient `json:"clients" mapstructure:"clients"` ID string `json:"id" mapstructure:"id"` Name string `json:"name" mapstructure:"name"` StreamID string `json:"stream_id" mapstructure:"stream_id"` }
type SimplifiedServerStatus ¶ added in v1.8.1
type SimplifiedServerStatus struct { Groups []SimplifiedGroup Streams []Stream }
type SimplifiedStatus ¶ added in v1.8.1
type SimplifiedStatus struct {
Server SimplifiedServerStatus
}
type SnapcastClientCommand ¶
type SnapcastGroupCommand ¶
type SnapcastGroupCommand struct { GroupID string `json:"group_id"` Action types.Action `json:"action"` // SET sets given options GET gets the group description Stream string `json:"stream,omitempty"` // stream to set (valid only for SET) Clients []string `json:"clients,omitempty"` // clients to group into this one (valid only for SET) }
type Status ¶
type Status struct {
Server ServerStatus
}
Click to show internal directories.
Click to hide internal directories.