Versions in this module Expand all Collapse all v0 v0.0.3 Sep 20, 2021 Changes in this version + var AuthError_ErrorType_name = map[int32]string + var AuthError_ErrorType_value = map[string]int32 + var CastMessage_PayloadType_name = map[int32]string + var CastMessage_PayloadType_value = map[string]int32 + var CastMessage_ProtocolVersion_name = map[int32]string + var CastMessage_ProtocolVersion_value = map[string]int32 + var CloseHeader = PayloadHeader + var ConnectHeader = PayloadHeader + var GetStatusHeader = PayloadHeader + var LaunchHeader = PayloadHeader + var LoadHeader = PayloadHeader + var PauseHeader = PayloadHeader + var PlayHeader = PayloadHeader + var PongHeader = PayloadHeader + var QueueLoadHeader = PayloadHeader + var QueueUpdateHeader = PayloadHeader + var SeekHeader = PayloadHeader + var StopHeader = PayloadHeader + var VolumeHeader = PayloadHeader + func DiscoverCastDNSEntries(ctx context.Context, iface *net.Interface) (<-chan CastEntry, error) + type Application struct + func NewApplication(opts ...ApplicationOption) *Application + func (a *Application) AddMessageFunc(f CastMessageFunc) + func (a *Application) Close(stopMedia bool) error + func (a *Application) LoadApp(appID, contentID string) error + func (a *Application) Media() *Media + func (a *Application) MediaFinished() + func (a *Application) MediaStart() + func (a *Application) MediaWait() + func (a *Application) Next() error + func (a *Application) Pause() error + func (a *Application) Previous() error + func (a *Application) Seek(value int) error + func (a *Application) SeekFromStart(value int) error + func (a *Application) SeekToTime(value float32) error + func (a *Application) SetMuted(value bool) error + func (a *Application) SetVolume(value float32) error + func (a *Application) Skip() error + func (a *Application) Start(addr string, port int) error + func (a *Application) Status() (*PayloadApplication, *Media, *Volume) + func (a *Application) Stop() error + func (a *Application) StopMedia() error + func (a *Application) Unpause() error + func (a *Application) Update() error + func (a *Application) Volume() *Volume + type ApplicationOption func(*Application) + func WithConnectionRetries(connectionRetries int) ApplicationOption + func WithIface(iface *net.Interface) ApplicationOption + type AuthChallenge struct + XXX_unrecognized []byte + func (*AuthChallenge) ProtoMessage() + func (m *AuthChallenge) Reset() + func (m *AuthChallenge) String() string + type AuthError struct + ErrorType *AuthError_ErrorType + XXX_unrecognized []byte + func (*AuthError) ProtoMessage() + func (m *AuthError) GetErrorType() AuthError_ErrorType + func (m *AuthError) Reset() + func (m *AuthError) String() string + type AuthError_ErrorType int32 + const AuthError_INTERNAL_ERROR + const AuthError_NO_TLS + func (x *AuthError_ErrorType) UnmarshalJSON(data []byte) error + func (x AuthError_ErrorType) Enum() *AuthError_ErrorType + func (x AuthError_ErrorType) String() string + type AuthResponse struct + ClientAuthCertificate []byte + Signature []byte + XXX_unrecognized []byte + func (*AuthResponse) ProtoMessage() + func (m *AuthResponse) GetClientAuthCertificate() []byte + func (m *AuthResponse) GetSignature() []byte + func (m *AuthResponse) Reset() + func (m *AuthResponse) String() string + type CastEntry struct + AddrV4 net.IP + AddrV6 net.IP + Device string + DeviceName string + Host string + InfoFields map[string]string + Name string + Port int + Status string + UUID string + func (e CastEntry) GetAddr() string + func (e CastEntry) GetName() string + func (e CastEntry) GetPort() int + func (e CastEntry) GetUUID() string + type CastMessage struct + DestinationId *string + Namespace *string + PayloadBinary []byte + PayloadType *CastMessage_PayloadType + PayloadUtf8 *string + ProtocolVersion *CastMessage_ProtocolVersion + SourceId *string + XXX_unrecognized []byte + func (*CastMessage) ProtoMessage() + func (m *CastMessage) GetDestinationId() string + func (m *CastMessage) GetNamespace() string + func (m *CastMessage) GetPayloadBinary() []byte + func (m *CastMessage) GetPayloadType() CastMessage_PayloadType + func (m *CastMessage) GetPayloadUtf8() string + func (m *CastMessage) GetProtocolVersion() CastMessage_ProtocolVersion + func (m *CastMessage) GetSourceId() string + func (m *CastMessage) Reset() + func (m *CastMessage) String() string + type CastMessageFunc func(*CastMessage) + type CastMessage_PayloadType int32 + const CastMessage_BINARY + const CastMessage_STRING + func (x *CastMessage_PayloadType) UnmarshalJSON(data []byte) error + func (x CastMessage_PayloadType) Enum() *CastMessage_PayloadType + func (x CastMessage_PayloadType) String() string + type CastMessage_ProtocolVersion int32 + const CastMessage_CASTV2_1_0 + func (x *CastMessage_ProtocolVersion) UnmarshalJSON(data []byte) error + func (x CastMessage_ProtocolVersion) Enum() *CastMessage_ProtocolVersion + func (x CastMessage_ProtocolVersion) String() string + type Connection struct + func NewConnection(recvMsgChan chan *CastMessage) *Connection + func (c *Connection) Close() error + func (c *Connection) LocalAddr() (addr string, err error) + func (c *Connection) Send(requestID int, payload Payload, sourceID, destinationID, namespace string) error + func (c *Connection) SetDebug(debug bool) + func (c *Connection) Start(addr string, port int) error + type DeviceAuthMessage struct + Challenge *AuthChallenge + Error *AuthError + Response *AuthResponse + XXX_unrecognized []byte + func (*DeviceAuthMessage) ProtoMessage() + func (m *DeviceAuthMessage) GetChallenge() *AuthChallenge + func (m *DeviceAuthMessage) GetError() *AuthError + func (m *DeviceAuthMessage) GetResponse() *AuthResponse + func (m *DeviceAuthMessage) Reset() + func (m *DeviceAuthMessage) String() string + type Image struct + Height int + URL string + Width int + type LaunchRequest struct + AppId string + type LoadMediaCommand struct + Autoplay bool + CurrentTime int + CustomData interface{} + Media MediaItem + QueueData QueueData + type Media struct + CurrentItemId int + CurrentTime float32 + IdleReason string + LoadingItemId int + Media MediaItem + MediaSessionId int + PlayerState string + Volume Volume + type MediaHeader struct + CurrentTime float32 + MediaSessionId int + RelativeTime float32 + ResumeState string + type MediaItem struct + ContentId string + ContentType string + Duration float32 + Metadata MediaMetadata + StreamType string + type MediaMetadata struct + Artist string + Images []Image + MetadataType int + ReleaseDate string + Subtitle string + Title string + type MediaStatusResponse struct + Status []Media + type Payload interface + SetRequestId func(id int) + type PayloadApplication struct + AppId string + DisplayName string + IsIdleScreen bool + SessionId string + StatusText string + TransportId string + type PayloadHeader struct + RequestId int + Type string + func (p *PayloadHeader) SetRequestId(id int) + type QueueData struct + StartIndex int + type QueueLoad struct + CurrentTime float32 + Items []QueueLoadItem + MediaSessionId int + RepeatMode string + StartIndex int + type QueueLoadItem struct + Autoplay bool + Media MediaItem + PlaybackDuration int + type QueueUpdate struct + Jump int + MediaSessionId int + type ReceiverStatusRequest struct + Applications []PayloadApplication + Volume Volume + type ReceiverStatusResponse struct + Status struct{ ... } + type SetVolume struct + Volume Volume + type Volume struct + Level float32 + Muted bool