config

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfiguration

func ReadConfiguration() error

func ReadFlags

func ReadFlags()

func SetAWSSession

func SetAWSSession(sess *session.Session)

Types

type AWSConfig

type AWSConfig struct {
	Region string
	S3     S3Config
}

type Config

type Config struct {
	Service       ServiceConfig
	Server        ServerConfig
	Upload        UploadConfig
	StorageEngine string
	DiskStorage   DiskStorageConfig
	AWS           AWSConfig
	Prometheus    PrometheusConfig
}
var (
	AppConfig  Config
	AWSSession *session.Session
)

type DiskStorageConfig

type DiskStorageConfig struct {
	Path string
}

type PrometheusConfig

type PrometheusConfig struct {
	Enabled     bool
	MetricsPath string
}

type S3Config

type S3Config struct {
	Domain           string
	Bucket           string
	BucketVersioning bool
	Concurrency      int
	PartSize         int
	MaxAttempts      int
	Timeout          int
}

type ServerConfig

type ServerConfig struct {
	ListenAddress   string
	GinMode         string
	DevelopmentMode bool
}

type ServiceConfig

type ServiceConfig struct {
	Address string
}

type UploadConfig

type UploadConfig struct {
	MaxFileSize uint32
}

Jump to

Keyboard shortcuts

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