local_user_storage

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

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