config

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 13 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            `yaml:"environment"`
	GRPCClient      grpcclient.Config `yaml:"manager"`
	WebsocketServer websocket.Config  `yaml:"ws_server"`
	Database        database.Config   `yaml:"database"`
	RedisConf       redis.Config      `yaml:"redis"`
	GRPCServer      grpc.Config       `yaml:"grpc_server"`
	Logger          logger.Config     `yaml:"logger"`
	Handler         repository.Config
}

Config represents the configs used by relay and other concepts on system.

func Load

func Load(path string) (*Config, error)

Load loads config from file and env.

func (*Config) LoadParameters

func (c *Config) LoadParameters(params *mpb.GetParametersResponse) error

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents an error in loading or validating config.

func (Error) Error

func (e Error) Error() string

type Parameters

type Parameters struct {
	Handler         *repository.Config
	WebsocketServer *websocket.Config
}

Jump to

Keyboard shortcuts

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