Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotSupported = fmt.Errorf("unsupported operating system: %s", runtime.GOOS)
)
Functions ¶
Types ¶
type Client ¶
type Client struct { sync.Mutex Status chan StatusMessage Errors chan error Tasks chan []*common.ConcreteSyncState // contains filtered or unexported fields }
Client is an auto-reconnecting WebSocket client connected to the http server.
func (*Client) Reconnect ¶
func (c *Client) Reconnect()
Reconnect tries a reconnection of the WebSocket link.
func (*Client) SendCmd ¶ added in v0.8.0
func (c *Client) SendCmd(content *common.CmdContent)
SendCmd sends a command via the WebSocket
func (*Client) SendHalt ¶ added in v0.8.0
func (c *Client) SendHalt()
SendHalt sends a Quit command to the server. The parent process of the systray should be then killed by the server. If send fails or if it is still running after 3 seconds, quit directly this process.
func (*Client) SendOrderedTasks ¶
func (c *Client) SendOrderedTasks()
SendOrderedTasks sends the lists of tasks
type StatusMessage ¶
type StatusMessage int
StatusMessage provides an int representation of Connected/Disconnected status
const ( StatusConnected StatusMessage = iota StatusDisconnected )
Click to show internal directories.
Click to hide internal directories.