config

package
v0.0.0-...-f5b7543 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Unlicense Imports: 3 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 {
	Environment    string `default:"dev"`
	LogLevel       string `default:"info" split_words:"true"`
	ListenAddress  string `default:":8080" split_words:"true"`
	HydraAdminAPI  string `required:"true" split_words:"true"`
	KratosAdminAPI string `split_words:"true"`
}

func Load

func Load() (*Config, error)

func (*Config) IsDevEnv

func (cfg *Config) IsDevEnv() bool

func (*Config) IsKratosIntegrationEnabled

func (cfg *Config) IsKratosIntegrationEnabled() bool

Jump to

Keyboard shortcuts

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