gconfig

package
v0.0.0-...-047dcd9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(customConfigDir string) (*Client, error)

func (*Client) GetConfigDir

func (c *Client) GetConfigDir() string

func (*Client) Load

func (c *Client) Load(prefix, key string, v interface{}, allowEmpty bool) error

func (*Client) LoadAndStore

func (c *Client) LoadAndStore(prefix, key string, v interface{}, allowEmpty bool) error

Load config from config file first, then encrypt and store config to disk.

func (*Client) SetPassword

func (c *Client) SetPassword(password, salt string)

func (*Client) Store

func (c *Client) Store(prefix, key string, v interface{}) error

type MgrCenter

type MgrCenter struct {
}

func NewConfigCenter

func NewConfigCenter() (*MgrCenter, error)

Jump to

Keyboard shortcuts

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