config

package
v0.0.0-...-1920916 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Host         string
	Port         int
	ReadTimeout  time.Duration `mapstructure:"read_timeout"`
	WriteTimeout time.Duration `mapstructure:"write_timeout"`
	SecretKey    string        `mapstructure:"secret_key"`
}

type Config

type Config struct {
	API      APIConfig
	Image    ImageConfig
	LogLevel string `mapstructure:"log_level"`
	Debug    bool
}

func NewConfig

func NewConfig() (*Config, error)

type ImageConfig

type ImageConfig struct {
	UploadDir string `mapstructure:"upload_dir"`
	ModelDir  string `mapstructure:"model_dir"`
}

Jump to

Keyboard shortcuts

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