Versions in this module Expand all Collapse all v0 v0.1.0 Feb 16, 2023 Changes in this version + func DeleteConfigFile() error + func GetVersion() string + func HasDefaultConfigFile(path string) bool + func IsNewHost(currentHost, newHost string) bool + func ReadVersion() ([]byte, error) + type AckEventDelivery struct + UID string + type CLIEvent struct + Data json.RawMessage + Headers map[string][]string + UID string + type Config struct + ActiveApiKey string + ActiveProjectID string + Host string + Projects []ConfigProject + func LoadConfig() (*Config, error) + func NewConfig(host, apiKey string) (*Config, error) + func (c *Config) HasDefaultConfigFile() bool + func (c *Config) UpdateConfig(response *LoginResponse, isLogin bool) error + func (c *Config) WriteToDisk() error + type ConfigProject struct + DeviceID string + Host string + Name string + Type string + UID string + type Device struct + EndpointID string + HostName string + LastSeenAt primitive.DateTime + ProjectID string + Status string + UID string + type Endpoint struct + Description string + OwnerID string + ProjectID string + TargetURL string + Title string + UID string + type ListenRequest struct + DeviceID string + ForwardTo string + HostName string + ProjectID string + Since string + SourceName string + type Listener struct + func NewListener(c *Config) *Listener + func (l *Listener) HandleMessage(connection *websocket.Conn, url string) + func (l *Listener) Listen(listenRequest *ListenRequest, hostInfo *url.URL) + func (l *Listener) PingUntilInterrupt(conn *websocket.Conn) + type LoginRequest struct + DeviceID string + HostName string + type LoginResponse struct + Projects []ProjectDevice + UserName string + type Project struct + Name string + OrganisationID string + Type string + UID string + type ProjectDevice struct + Device *Device + Project *Project