Documentation ¶
Index ¶
- type Config
- type Storage
- func (store *Storage) DeleteEntity(entity db.Entity)
- func (store *Storage) Entities() ([]db.Entity, error)
- func (store *Storage) EntityWithName(name string) (db.Entity, error)
- func (store *Storage) Get(key []byte) ([]byte, error)
- func (store *Storage) SaveEntity(entity db.Entity) error
- func (store *Storage) Set(key, data []byte) error
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `json:"name"` ID string `json:"id"` ServePort int `json:"server_port"` Pin string `json:"pin"` Version int `json:"version"` CategoryID uint8 `json:"category_id"` State int `json:"state"` Protocol string `json:"protocol"` Discoverable bool `json:"discoverable"` MfiCompliant bool `json:"mfi_compliant"` ConfigHash []byte `json:"config_hash"` SetupID string `json:"setup_id"` // contains filtered or unexported fields }
func (Config) MDNSRecords ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Storage) DeleteEntity ¶
func (*Storage) EntityWithName ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func (*Transport) RemoveAccessory ¶
func (*Transport) UpdateReachability ¶
func (t *Transport) UpdateReachability()
Click to show internal directories.
Click to hide internal directories.