config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigFile string `toml:"-"`

	ConnectionString string
	CachePath        string
	Logfile          string

	Profile ConfigProfile
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) Persist

func (cfg *Config) Persist() error

func (*Config) Setup

func (cfg *Config) Setup() error

func (*Config) WasSetup

func (cfg *Config) WasSetup() bool

type ConfigProfile

type ConfigProfile struct {
	From         string
	Organization string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳