Documentation
¶
Index ¶
- func NewID() string
- type Disk
- func (d Disk) Active() (string, error)
- func (d Disk) Last() (string, error)
- func (d Disk) Save(subs []Subscription) error
- func (d Disk) SetActive(id string) error
- func (d Disk) SetLast(id string) error
- func (d Disk) SetSettings(in domain.Settings) error
- func (d Disk) SetTun(on bool) error
- func (d Disk) State() (State, error)
- func (d Disk) Subscriptions() ([]Subscription, error)
- type State
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Disk ¶
type Disk struct{ Dir string }
Disk reads and writes subscriptions.yaml and configuration.yaml
func (Disk) Save ¶
func (d Disk) Save(subs []Subscription) error
func (Disk) SetActive ¶
SetActive persists the node to restore on start; connecting also records it as Last
func (Disk) Subscriptions ¶
func (d Disk) Subscriptions() ([]Subscription, error)
Click to show internal directories.
Click to hide internal directories.