vars

package
v0.0.0-...-d5a4dd1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_NAME = "B2WEBP"
)

Variables

View Source
var (
	ListenAddress string
	DebugMode     bool
	DataDir       string
	BaseURL       string
	BootTime      time.Time
	CacheDir      string
	MaxCacheSize  int64

	S3Setting S3SettingS

	Database     *gorm.DB
	HashId       *hashids.HashID
	MemoryCache  *freecache.Cache
	CronInstance *cron.Cron

	UploadPassword    string
	CdnAssetsPrefix   string
	Motd              string
	ServeByteCounter  atomic.Uint64
	ServeClickCounter atomic.Uint64
)

Functions

func Getenv

func Getenv(name string) string

Types

type S3SettingS

type S3SettingS struct {
	Region       string
	Endpoint     string
	Bucket       string
	AccessId     string
	AccessKey    string
	ObjectPrefix string
}

Jump to

Keyboard shortcuts

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