Documentation
¶
Overview ¶
Package config defines configurations for the auth server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAuthManager ¶
func InitAuthManager( ctx context.Context, configPath string, exporters *gotel.OTelExporters, ) (*auth.RelyAuthManager, error)
InitAuthManager initializes the auth manager from config.
Types ¶
type RelyAuthServerConfig ¶
type RelyAuthServerConfig struct {
// Server configs.
Server gohttps.ServerConfig `json:"server" yaml:"server"`
// Telemetry configs.
Telemetry gotel.OTLPConfig `json:"telemetry" yaml:"telemetry"`
// Path of the auth config file.
ConfigPath string `json:"configPath" yaml:"configPath" env:"RELY_AUTH_CONFIG_PATH"`
}
RelyAuthServerConfig holds information of required configurations to run the auth server.
func LoadServerConfig ¶
func LoadServerConfig() (*RelyAuthServerConfig, error)
LoadServerConfig loads and parses configurations for RelyAuthServerConfig.
func (RelyAuthServerConfig) GetConfigPath ¶
func (rlsc RelyAuthServerConfig) GetConfigPath() string
GetConfigPath returns the auth config path.
Click to show internal directories.
Click to hide internal directories.