cfg

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 7 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 {
	Env string
	Log struct {
		Level string
	}

	bootstrap.GrpcServerRunnerConfig `mapstructure:",squash" yaml:",inline"`

	HttpServer struct {
		Port int
	}

	Img2Vec struct {
		Addr string
	}

	Milvus struct {
		Addr           string
		VectorDim      int
		MetricType     entity.MetricType
		NProbe         int
		CollectionName string
	}

	ObjectDetector struct {
		Addr string
	}

	Redis struct {
		Addr string
	}
}

func ParseConfig

func ParseConfig(path string) Config

ParseConfig parses config file specified by path into config struct and validates it.

func ParseDevConfig

func ParseDevConfig() Config

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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