config

package
v0.0.0-...-d34620b Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(listener func() error)

func LoadConfig

func LoadConfig(path string) error

func WatchConfig

func WatchConfig(path string) error

Types

type Configuration

type Configuration struct {
	Urls         map[string]string `yaml:"urls,omitempty"`
	Hydra        *Hydra            `yaml:"hydra,omitempty"`
	Kratos       *Kratos           `yaml:"kratos,omitempty"`
	Keto         *Keto             `yaml:"keto,omitempty"`
	Server       *Server           `yaml:"server,omitempty"`
	Messages     *Messages         `yaml:"messages,omitempty"`
	MasterInvite string
}
var Config *Configuration

type Hydra

type Hydra struct {
	Session     *Session `yaml:"session,omitempty"`
	AdminApiUrl string   `yaml:"admin_api_url,omitempty"`
}

type Keto

type Keto struct {
	WriteApiUrl string `yaml:"write_api_url,omitempty"`
	ReadApiUrl  string `yaml:"read_api_url,omitempty"`
}

type Kratos

type Kratos struct {
	AdminApiUrl  string `yaml:"admin_api_url"`
	PublicApiUrl string `yaml:"public_api_url"`
}

type Messages

type Messages struct {
	NoInviteLinkErrorMessage      string `yaml:",omitempty"`
	InvalidInviteLinkErrorMessage string `yaml:",omitempty"`
}

type Server

type Server struct {
	RunMode  string `yaml:"run_mode,omitempty"`
	Endpoint string `yaml:"endpoint,omitempty"`
}

type Session

type Session struct {
	RememberFor int64 `yaml:"remember_for,omitempty"`
}

Jump to

Keyboard shortcuts

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