Documentation
¶
Index ¶
- Constants
- Variables
- func ClearLog(path string) error
- func Configuration(dir string) string
- func DaemonLog(dir string) string
- func Dir() (string, error)
- func EngineLog(dir string) string
- func EnsureDir(dir string) error
- func Socket(dir string) string
- func Subscriptions(dir string) string
- type Args
- type Changed
- type Client
- func (c *Client) AddSub(url string) (Snapshot, error)
- func (c *Client) Connect(ref domain.NodeRef) (Snapshot, error)
- func (c *Client) Disconnect() (Snapshot, error)
- func (c *Client) MoveSub(id string, dir int) (Snapshot, error)
- func (c *Client) Ping() error
- func (c *Client) Probe(sub, id string) (Snapshot, error)
- func (c *Client) Refresh(id string) (Snapshot, error)
- func (c *Client) RefreshAll() (Snapshot, error)
- func (c *Client) RemoveSub(id string) (Snapshot, error)
- func (c *Client) SetSettings(s domain.Settings) (Snapshot, error)
- func (c *Client) SetTun(enable bool) (Snapshot, error)
- func (c *Client) Shutdown() error
- func (c *Client) Snapshot() (Snapshot, error)
- func (c *Client) Watch(ctx context.Context, onUpdate func(Changed)) error
- type Node
- type Req
- type Resp
- type Snapshot
- type Status
- type Sub
Constants ¶
View Source
const IdleTimeout = 60 * time.Second
IdleTimeout bounds how long either side waits on a quiet connection
Variables ¶
View Source
var ErrElevate = errors.New("granting permissions")
Functions ¶
func Configuration ¶
func Subscriptions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
func (*Client) RefreshAll ¶
type Node ¶
Click to show internal directories.
Click to hide internal directories.