runtimeconfig

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(configFile string) *domain.RuntimeConfig

Load opens the json passed and merges it with defaults

Types

type SetupKey added in v0.9.0

type SetupKey struct {
	Config    *domain.RuntimeConfig `checkinject:"required"`
	DBManager interface {
		GetSetupKey() (string, error)
		DeleteSetupKey() error
	} `checkinject:"required"`
	UserModel interface {
		GetAllAdmins() ([]domain.UserID, error)
	} `checkinject:"required"`
	// contains filtered or unexported fields
}

func (*SetupKey) Delete added in v0.9.0

func (k *SetupKey) Delete() error

func (*SetupKey) Get added in v0.9.0

func (k *SetupKey) Get() (string, error)

func (*SetupKey) Has added in v0.9.0

func (k *SetupKey) Has() (bool, error)

func (*SetupKey) RevealKey added in v0.9.0

func (k *SetupKey) RevealKey()

Jump to

Keyboard shortcuts

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