Documentation
¶
Overview ¶
Package serviceclient holds the types for the desktop clients' saved service launch preferences. They're shared by the serviceclientprefs feature and the LocalAPI client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pref ¶
type Pref struct {
// Client is the saved client identifier the user picked in the last service launch,
// for example, terminal/putty/iterm2/... for SSH, and dbeaver/psql/mycli/... for
// database. Empty means no client has been saved for this service.
Client string `json:",omitzero"`
// Username is the saved login name for SSH and future services that require username.
// Empty means none saved.
Username string `json:",omitzero"`
// DatabaseName is the saved DB name (database service types). Empty means none saved.
DatabaseName string `json:",omitzero"`
// LastUsed is when this service was last launched. Zero means never.
// When the macOS and Windows apps generate a "recently used" list, they sort by
// LastUsed descending.
LastUsed time.Time `json:",omitzero"`
}
Pref captures the saved preferences for one service.
Click to show internal directories.
Click to hide internal directories.