env_config

package
v0.0.0-...-5d38aa0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 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 AppEnvConfig

type AppEnvConfig struct {
	Server   ServerConfig
	Minio    MinioConfig
	Endpoint Endpoint
	Upload   UploadConfig
}

func LoadConfig

func LoadConfig() (error, *AppEnvConfig)

type Endpoint

type Endpoint struct {
	ApiVersion, UploadUrl, DownloadUrl string
}

func (*Endpoint) GenUrl

func (endpoint *Endpoint) GenUrl(endPoint string) string

type MinioConfig

type MinioConfig struct {
	Endpoint, AccessKey, SecretAccessKey, Location, Bucket string
	UseSSL                                                 bool
}

type ServerConfig

type ServerConfig struct {
	Port          int
	ListenAddress string
}

type UploadConfig

type UploadConfig struct {
	MaxUploadSize int64
	FilePath      string
}

Jump to

Keyboard shortcuts

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