users

package
v0.0.0-...-870ec01 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_LOSSLESS_SIZE = 256000.0 // 250KB
View Source
const MAX_PIXEL_HEIGHT = 1000
View Source
const MAX_PIXEL_WIDTH = 1000
View Source
const MAX_UPLOAD_SIZE = 2621440 // 2.5MB
View Source
const MIN_PIXEL_HEIGHT = 64
View Source
const MIN_PIXEL_WIDTH = 64
View Source
const QUALITY_AT_MAX_SIZE = 80.0 // A file at 2.5MB will encode at quality 80
View Source
const QUALITY_FACTOR = -((QUALITY_AT_MAX_SIZE / 100) * (MAX_LOSSLESS_SIZE - MAX_UPLOAD_SIZE)) / (1 - (QUALITY_AT_MAX_SIZE / 100))

Variables

This section is empty.

Functions

func EditProfilePicture

func EditProfilePicture(router fiber.Router)

func GetChannelEmotesRoute

func GetChannelEmotesRoute(router fiber.Router)

func GetUser

func GetUser(router fiber.Router)

Types

type EditProfilePictureResult

type EditProfilePictureResult struct {
	ID  string `json:"id"`
	URL string `json:"url"`
}

Jump to

Keyboard shortcuts

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