Documentation ¶
Index ¶
- type NodeConnection
- type Preferences
- func (c *Preferences) AddConnection(connection NodeConnection)
- func (c *Preferences) ConnectionCount() int
- func (c *Preferences) Connections() []NodeConnection
- func (c *Preferences) RemoveConnection(index int)
- func (c *Preferences) SetConnection(index int, connection NodeConnection)
- func (c *Preferences) SetTheme(theme string)
- func (c *Preferences) Theme() string
- type PreferencesStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeConnection ¶
type NodeConnection struct { Address string `json:"address"` UserName string `json:"user_name"` SessionToken string `json:"password"` }
func (*NodeConnection) String ¶ added in v1.0.4
func (c *NodeConnection) String() string
type Preferences ¶
type Preferences struct {
// contains filtered or unexported fields
}
func Instance ¶
func Instance() *Preferences
func NewPreferences ¶
func NewPreferences() *Preferences
func (*Preferences) AddConnection ¶
func (c *Preferences) AddConnection(connection NodeConnection)
func (*Preferences) ConnectionCount ¶
func (c *Preferences) ConnectionCount() int
func (*Preferences) Connections ¶
func (c *Preferences) Connections() []NodeConnection
func (*Preferences) RemoveConnection ¶
func (c *Preferences) RemoveConnection(index int)
func (*Preferences) SetConnection ¶
func (c *Preferences) SetConnection(index int, connection NodeConnection)
func (*Preferences) SetTheme ¶
func (c *Preferences) SetTheme(theme string)
func (*Preferences) Theme ¶
func (c *Preferences) Theme() string
type PreferencesStruct ¶
type PreferencesStruct struct { Theme string `json:"theme"` Connections []NodeConnection `json:"connections"` }
Click to show internal directories.
Click to hide internal directories.