Documentation
¶
Index ¶
- func DeleteConfigFile() error
- func GetVersion() string
- func HasDefaultConfigFile(path string) bool
- func IsNewHost(currentHost, newHost string) bool
- func ReadVersion() ([]byte, error)
- type AckEventDelivery
- type CLIEvent
- type Config
- type ConfigProject
- type Device
- type Endpoint
- type ListenRequest
- type Listener
- type LoginRequest
- type LoginResponse
- type Project
- type ProjectDevice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConfigFile ¶
func DeleteConfigFile() error
func GetVersion ¶
func GetVersion() string
func HasDefaultConfigFile ¶
func ReadVersion ¶
Types ¶
type AckEventDelivery ¶
type AckEventDelivery struct {
UID string `json:"uid"`
}
type CLIEvent ¶
type CLIEvent struct { UID string `json:"uid"` Headers map[string][]string `json:"headers"` Data json.RawMessage `json:"data"` }
type Config ¶
type Config struct { Host string `yaml:"host"` ActiveApiKey string `yaml:"active_api_key"` ActiveProjectID string `yaml:"active_project_id"` Projects []ConfigProject `yaml:"projects"` // contains filtered or unexported fields }
func LoadConfig ¶
func (*Config) HasDefaultConfigFile ¶
func (*Config) UpdateConfig ¶
func (c *Config) UpdateConfig(response *LoginResponse, isLogin bool) error
func (*Config) WriteToDisk ¶
type ConfigProject ¶
type ListenRequest ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
func (*Listener) HandleMessage ¶
func (*Listener) Listen ¶
func (l *Listener) Listen(listenRequest *ListenRequest, hostInfo *url.URL)
func (*Listener) PingUntilInterrupt ¶
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct { Projects []ProjectDevice `json:"projects"` UserName string `json:"user_name"` }
type ProjectDevice ¶
Click to show internal directories.
Click to hide internal directories.