config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Live

type Live struct{}

Live provides a viper-backed config for commands

func (*Live) GetAPIClient

func (c *Live) GetAPIClient(host, accessToken string) *api.Client

func (*Live) GetBool

func (c *Live) GetBool(key string) bool

func (*Live) GetInt

func (c *Live) GetInt(key string) int

func (*Live) GetString

func (c *Live) GetString(key string) string

func (*Live) Set

func (c *Live) Set(key string, val interface{}) error

type Provider

type Provider interface {
	GetString(key string) string
	GetBool(key string) bool
	GetInt(key string) int
	Set(key string, val interface{}) error

	GetAPIClient(host, accessToken string) *api.Client
}

Jump to

Keyboard shortcuts

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