Documentation ¶
Index ¶
- Constants
- Variables
- type AmpController
- type ApplicationSession
- type Client
- type Device
- type Envelope
- type ErrorString
- type IdentifiablePayload
- type Launcher
- type Listener
- type Logger
- type Namespace
- type PayloadWithID
- type Requester
- type Scanner
- type Sender
- type Serializer
- type Status
- type StatusResponse
- type Volume
Constants ¶
View Source
const ErrAppNotFound = ErrorString("app not found")
ErrAppNotFound is returned when a given app was not found
Variables ¶
View Source
var Version = "dev" /* passed in by travis build */
Functions ¶
This section is empty.
Types ¶
type AmpController ¶
type ApplicationSession ¶
type ApplicationSession struct { AppID *string `json:"appId,omitempty"` DisplayName *string `json:"displayName,omitempty"` Namespaces []*Namespace `json:"namespaces"` SessionID *string `json:"sessionId,omitempty"` StatusText *string `json:"statusText,omitempty"` TransportId *string `json:"transportId,omitempty"` }
type ErrorString ¶
type ErrorString string
ErrorString represents some constant errors
func (ErrorString) Error ¶
func (e ErrorString) Error() string
Error returns the underlying error string
type IdentifiablePayload ¶
type IdentifiablePayload interface {
SetRequestID(uint32)
}
type Listener ¶
Listener allows to listen to specific messages and forward them (non-blocking) on ch
type Logger ¶
type Logger interface {
Log(keyvals ...interface{}) error
}
Logger is for structured logging in services (like in https://github.com/go-kit/kit/tree/master/log)
type PayloadWithID ¶
type PayloadWithID struct { Type string `json:"type"` RequestID *uint32 `json:"requestId,omitempty"` }
func (*PayloadWithID) SetRequestID ¶
func (p *PayloadWithID) SetRequestID(id uint32)
type Requester ¶
type Requester interface {
Request(env Envelope, payload IdentifiablePayload) (<-chan []byte, error)
}
Requester sends a payload and expects one payload as reply
type Serializer ¶
type Status ¶
type Status struct { Applications []*ApplicationSession `json:"applications"` Volume *Volume `json:"volume,omitempty"` }
func (Status) AppSupporting ¶
func (st Status) AppSupporting(namespace string) (apps []ApplicationSession)
func (Status) AppWithID ¶
func (st Status) AppWithID(id string) *ApplicationSession
func (Status) FirstDestinationSupporting ¶
type StatusResponse ¶
type StatusResponse struct {
Status *Status `json:"status"`
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package discovery is used to discover devices on the network using a provided scanner
|
Package discovery is used to discover devices on the network using a provided scanner |
zeroconf
Package zeroconf provides a Scanner backed by the github.com/grandcat/zeroconf package
|
Package zeroconf provides a Scanner backed by the github.com/grandcat/zeroconf package |
pb
Package pb is a generated protocol buffer package.
|
Package pb is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.