config

package
v0.0.0-...-75f25d5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: BSD-3-Clause Imports: 8 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 {
	Server   *srvconfig.Config        `yaml:"server"`
	Postgres *postgres.Config         `yaml:"postgres"`
	S3       *minios3.Config          `yaml:"s3"`
	Jaeger   *tracing.Config          `yaml:"jaeger"`
	Prom     *prom.Config             `yaml:"prom"`
	API      *client.GrpcClientConfig `yaml:"api"`
	KeyCloak *KeyCloakConfig          `yaml:"keycloak"`
}

Config конфигурация сервиса.

func MustNew

func MustNew(path string) *Config

MustNew создает новую конфигурацию или вызывает панику.

type KeyCloakConfig

type KeyCloakConfig struct {
	URL          string `yaml:"url"`
	ClientID     string `yaml:"client_id"`
	ClientSecret string `yaml:"client_secret"`
	Realm        string `yaml:"realm"`
	AdminRealm   string `yaml:"admin_realm"`
	User         string `yaml:"user"`
	Password     string `yaml:"password"`
}

KeyCloakConfig конфигурация KeyCloak.

Jump to

Keyboard shortcuts

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