configs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	LogConfig    bool               `yaml:"LogConfig"`
	Logger       logger.Config      `yaml:"Logger"`
	ConfigReader configutils.Config `yaml:"ConfigReader"`
	AppNames     []string           `yaml:"AppNames"`
	Server       Server             `yaml:"Server" `
	Repository   sql.Config         `yaml:"Repository"`
	Service      service.Config     `yaml:"Service"`
	Debug        debug.Config       `yaml:"Debug"`
}

func LoadConfig

func LoadConfig(ctx context.Context, path string, env string) *Configuration

type Server

type Server struct {
	GRPC ServerConfig `yaml:"GRPC"`
	HTTP ServerConfig `yaml:"HTTP"`
}

type ServerConfig

type ServerConfig struct {
	Port                  int  `yaml:"Port"`
	AuthenticationEnabled bool `yaml:"AuthenticationEnabled"`
}

Jump to

Keyboard shortcuts

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