Documentation ¶
Index ¶
- type Client
- func (c *Client) GetBool(key string) bool
- func (c *Client) GetDuration(key string) (time.Duration, error)
- func (c *Client) GetInt(key string) int
- func (c *Client) GetString(key string) string
- func (c *Client) GetStringSlice(key string) []string
- func (c *Client) Init() error
- func (c *Client) IsSet(key string) bool
- func (c *Client) Set(key string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Content string // contains filtered or unexported fields }
Client used to access the configurations.
func (*Client) GetDuration ¶
GetDuration get the value as a time.Duration from a given configuration.
func (*Client) GetStringSlice ¶
GetStringSlice get the value as a []string from a given configuration.
Click to show internal directories.
Click to hide internal directories.