Documentation
¶
Index ¶
- Constants
- Variables
- func ClearLog(path string) error
- func DaemonLog(dir string) string
- func Dir() (string, error)
- func EngineLog(dir string) string
- func EnsureDir(dir string) error
- func Socket(dir string) string
- type Args
- type Client
- func (c *Client) Active() (string, error)
- func (c *Client) AddSub(url string) (Sub, error)
- func (c *Client) Connect(id string) (Status, error)
- func (c *Client) Disconnect() (Status, error)
- func (c *Client) MoveSub(id string, dir int) error
- func (c *Client) Nodes() ([]Node, error)
- func (c *Client) Ping() error
- func (c *Client) Probe(sub, id string) ([]Node, error)
- func (c *Client) Refresh(id string) (Sub, error)
- func (c *Client) RefreshAll() ([]Sub, error)
- func (c *Client) RemoveSub(id string) error
- func (c *Client) SetSettings(s domain.Settings) (Status, error)
- func (c *Client) SetTun(enable bool) (Status, error)
- func (c *Client) Settings() (domain.Settings, error)
- func (c *Client) Status() (Status, error)
- func (c *Client) Subs() ([]Sub, error)
- func (c *Client) Watch(onUpdate func(Status)) error
- type Node
- type Req
- type Resp
- 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 ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Disconnect ¶
func (*Client) RefreshAll ¶
Click to show internal directories.
Click to hide internal directories.