config

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvironmentErr = errors.New("unknown environment")
)

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Issuer   string `json:"issuer"`
	ClientID string `json:"client_id"`
	Audience string `json:"audience"`
}

func (*Auth) GetSettings

func (auth *Auth) GetSettings() *auth0.Settings

type Config

type Config struct {
	TenantID string     `json:"tenant_id"`
	Services x.Services `json:"services"`
	Auth     *Auth      `json:"auth"`
}

func NewConfig

func NewConfig(path Path, overrides ...Overrider) (*Config, error)

func NewTestConfig added in v0.8.6

func NewTestConfig(reader io.Reader, overrides ...Overrider) (*Config, error)

type Overrider

type Overrider func(*Config)

Overrider is a func that mutates configuration

type Path

type Path string

Jump to

Keyboard shortcuts

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