types

package
v0.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

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 PromptOption struct {
	Value   string `json:"value"`
	Desc    string `json:"desc,omitempty"`
	Checked bool   `json:"checked"`
}

type PromptResponse

type PromptResponse struct {
	ID    string `json:"id"`
	Value string `json:"value"`
	Err   error  `json:"error"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL