config

package
v0.0.0-...-90cde2e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	AppID           string `toml:"app_id"`
	RoleArn         string `toml:"role_arn"`
	PrincipalArn    string `toml:"principal_arn"`
	DurationSeconds int64  `toml:"duration_seconds"`
}

AppConfig stores configured data

type Config

type Config struct {
	Service map[string]*ServiceConfig `toml:"service"`
	App     map[string]*AppConfig     `toml:"app"`
	// contains filtered or unexported fields
}

Config stores config

func Load

func Load(file string) (*Config, error)

Load creates a Loaded Config

func (Config) Save

func (c Config) Save() error

Save to persistent store

type ServiceConfig

type ServiceConfig struct {
	Endpoint        string `toml:"endpoint"`
	ClientToken     string `toml:"client_token"`
	ClientSecret    string `toml:"client_secret"`
	Subdomain       string `toml:"subdomain"`
	UsernameOrEmail string `toml:"username_or_email"`
}

ServiceConfig stores initialized data

Jump to

Keyboard shortcuts

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