Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
Notification represents a desktop notification as sent to the Web GUI
type Progress ¶
type Progress struct {
BytesTransferred int `json:"bytes_transferred"`
BytesTotal int `json:"bytes_total"`
MID string `json:"mid"`
Subject string `json:"subject"`
Receiving bool `json:"receiving"`
Sending bool `json:"sending"`
Done bool `json:"done"`
}
Progress represents a progress report as sent to the Web GUI
type Prompt ¶
type Prompt struct {
ID string `json:"id"`
Kind PromptKind `json:"kind"`
Message string `json:"message"`
Options []PromptOption `json:"options,omitempty"` // For multi-select
}
type PromptKind ¶
type PromptKind string
const ( PromptKindPassword PromptKind = "password" PromptKindMultiSelect PromptKind = "multi-select" PromptKindBusyChannel PromptKind = "busy-channel" PromptKindPreAccountActivation PromptKind = "pre-account-activation" PromptKindAccountActivation PromptKind = "account-activation" )
type PromptOption ¶
type PromptResponse ¶
type Status ¶
type Status struct {
ActiveListeners []string `json:"active_listeners"`
Connected bool `json:"connected"`
Dialing bool `json:"dialing"`
RemoteAddr string `json:"remote_addr"`
HTTPClients []string `json:"http_clients"`
ConfigHash string `json:"config_hash"`
}
Status represents a status report as sent to the Web GUI
Click to show internal directories.
Click to hide internal directories.