config

package
v0.0.0-...-7e1f343 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPath = "./configs/config.yml"

DefaultPath default configuration path.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Template string `yaml:"template"`
	TempPath string `yaml:"tempPath"`
}

Blob decompression configuration.

type Config

type Config struct {
	Port    string            `yaml:"port"`
	Model   string            `yaml:"model"`
	MaxSize int64             `yaml:"maxSize"`
	Log     logger.Config     `yaml:"log"`
	Mysql   mysql2.Config     `yaml:"mysql"`
	Redis   redis2.Config     `yaml:"redis"`
	Storage Storage           `yaml:"storage"`
	Blob    Blob              `yaml:"blob"`
	Buckets map[string]string `yaml:"buckets"`
}

Config configuration file.

var Conf *Config

Conf configuration file.

func NewConfig

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

NewConfig get configuration.

type Storage

type Storage struct {
	AccessKeyID     string
	SecretAccessKey string
	Endpoint        string
	Region          string
	URLExpire       time.Duration
	PartExpire      time.Duration
}

Storage Storage.

Jump to

Keyboard shortcuts

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