config

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

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiName       = "fullbottle.api.v1"
	UserSrvName   = "fullbottle.srv.user."
	BottleSrvName = "fullbottle.srv.bottle"
	ShareSrvName  = "fullbottle.srv.share"
	UploadSrvName = "fullbottle.srv.upload"

	WeedName  = "fullbottle.weed"
	DBName    = "fullbottle.mysql"
	RedisName = "fullbottle.redis"
)
View Source
const (
	MaxMsgSendSize = 64 << 20 // client
	MaxMsgRecvSize = 64 << 20 // client
	MaxMsgSize     = 64 << 20 // server
)
View Source
const AppIss = "github.com/vegchic/fullbottle"
View Source
const AvatarMaxSize = 1 << 20 // 1mb
View Source
const DefaultCapacity = 1 << 30 // 1GB
View Source
const DefaultChunkSize = 1 << 20
View Source
const JwtTokenExpire = int64(60 * 60 * 24)
View Source
const PreviewSizeLimit = 5 << 20 // 5mb

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mysql struct {
		URL      string
		User     string
		Password string
		Database string
	}

	Redis struct {
		URL      string
		Password string
	}

	App struct {
		Secret string
		Upload struct {
			Secret string
		}
	}

	Server struct {
		Ip string
	}

	Weed struct {
		Master string
	}
}

func C

func C() Config

Jump to

Keyboard shortcuts

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