config

package
v0.0.0-...-a53383b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string, cfg *Config) error

Types

type Config

type Config struct {
	MaxRetry int `json:"max_retry"`

	BigModel   bigmodel.Config  `json:"bigmodel"     required:"true"`
	Postgresql PostgresqlConfig `json:"postgresql"   required:"true"`
	MQ         kafka.Config     `json:"mq"           required:"true"`
	Pool       poolimpl.Config  `json:"pool"         required:"true"`
	Watcher    watchimpl.Config `json:"watcher"      required:"true"`
}

func (*Config) ConfigItems

func (cfg *Config) ConfigItems() []interface{}

type PostgresqlConfig

type PostgresqlConfig struct {
	DB pgsql.Config `json:"db" required:"true"`

	repositoryimpl.Config
}

Jump to

Keyboard shortcuts

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