consts

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AvatarImageType types.ImageType = iota
	BannerImageType types.ImageType = iota
	PhotoImageType  types.ImageType = iota
)
View Source
const (
	Kibibyte  = 1024
	Mebibyte  = 1024 * Kibibyte
	BodyLimit = 30 * Mebibyte

	Kilobyte = 1000
	Megabyte = 1000 * Kilobyte

	NanoAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	NanoLength   = 16

	BlurHashXComponents = 4
	BlurHashYComponents = 3

	AvatarHeight = 256
	AvatarWidth  = 256

	BannerHeight = 382
	BannerWidth  = 728

	AVIFQuality = 85
)

Variables

View Source
var (
	ErrNotFoundBucket = errors.New("bucket is null")

	ErrPostgresConnection = errors.New("postgres connect error")
	ErrPostgresPing       = errors.New("postgres ping error")

	ErrSQLOpen            = errors.New("sql open error")
	ErrMigrate            = errors.New("migrate error")
	ErrMigrateInstance    = errors.New("migrate with instance sql error")
	ErrMigrateOpenFile    = errors.New("open migrations file error")
	ErrMigrateNewInstance = errors.New("new migration instance error")
	ErrMigrateUp          = errors.New("up migrate error")

	ErrOverflowOccurred = errors.New("overflow occurred")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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