configuration

package
v0.0.0-...-7669f62 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfig

type ApplicationConfig struct {
	GracefulShutdownTimeout time.Duration `yaml:"graceful_shutdown_timeout"`
	ForceShutdownTimeout    time.Duration `yaml:"force_shutdown_timeout"`
	App                     string        `yaml:"app"`
}

func (*ApplicationConfig) Validate

func (c *ApplicationConfig) Validate() error

type AuthClientConfig

type AuthClientConfig struct {
	Enable bool                          `yaml:"enable"`
	Conn   xclients.GRPCClientConnConfig `yaml:"conn"`
}

func (*AuthClientConfig) Validate

func (c *AuthClientConfig) Validate() error

type Config

type Config struct {
	Logger             xlogger.LoggerConfig      `yaml:"logger"`
	Application        ApplicationConfig         `yaml:"application"`
	PublicServer       xservers.ServerConfig     `yaml:"public_server"`
	AdminServer        xservers.ServerConfig     `yaml:"admin_server"`
	InternalGRPCServer xservers.GRPCServerConfig `yaml:"internal_grpc_server"`
	Storage            xstorage.StorageConfig    `yaml:"storage"`
	SecondStorage      xstorage.StorageConfig    `yaml:"second_storage"`
	AuthClient         AuthClientConfig          `yaml:"auth"`
	CounterClient      CounterClientConfig       `yaml:"counter"`
}

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) Validate

func (c *Config) Validate() error

type CounterClientConfig

type CounterClientConfig struct {
	Enable bool                          `yaml:"enable"`
	Conn   xclients.GRPCClientConnConfig `yaml:"conn"`
}

func (*CounterClientConfig) Validate

func (c *CounterClientConfig) Validate() error

Jump to

Keyboard shortcuts

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