config

package
v0.0.0-...-028896a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLocation  = "us-east-1"
	DefaultFilesPath = "tmp/files"
	StreamChunkSize  = 1024 * 1024 // 1 MB
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Minio  Minio  `yaml:"minio"`
	Server Server `yaml:"server"`
}

func New

func New() *Config

type Minio

type Minio struct {
	Endpoint  string `yaml:"endpoint"`
	AccessKey string `yaml:"accessKey"`
	SecretKey string `yaml:"secretKey"`
}

type Server

type Server struct {
	Port string `yaml:"port"`
	Host string `yaml:"host"`
}

Jump to

Keyboard shortcuts

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