constants

package
v0.0.0-...-d0df74b Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextParamUserID            = "user_id"
	AuthenticationTimeout         = 24 * time.Hour
	AuthenticationTimeoutExtended = 365 * 24 * time.Hour
	AuthenticationCookieKey       = "cast"
)
View Source
const (
	MessageTypeChat    = "chat"
	MessageTypeHistory = "history"
	MessageTypeError   = "error"

	MessageTypeNotification = "notification"
	MessageTypePing         = "ping"
)
View Source
const (
	DBCollectionUser         = "user"
	DBCollectionVideo        = "video"
	DBCollectionLike         = "like"
	DBCollectionSubscription = "subscription"
	DBCollectionComment      = "comment"
)
View Source
const (
	EmailTemplateVerification = "email-verify"
	EmailLinkVerification     = "https://%s/verify?key=%s"

	EmailTemplateReset = "email-reset"
	EmailLinkReset     = "https://%s/forget?key=%s"
)
View Source
const (
	TokenHashCharacters    = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
	TokenHashDefaultLength = 12

	TokenPurposeVerification = "verify"
	TokenPurposeReset        = "reset"
)
View Source
const (
	VideoTypeVOD     = "vod"
	VideoTypeLive    = "live"
	VideoRootDir     = "video"
	ThumbnailRootDir = "thumbnail"
	ThumbnailDefault = "_default_thumbnail"
	ThumbnailWidth   = 720
	ThumbnailHeight  = 405

	VideoListTrending   = "trending"
	VideoListSubscribed = "subscribed"
	VideoListLiked      = "liked"
)

Variables

View Source
var (
	Resolutions = []string{"None", "240p", "360p", "480p", "720p", "1080p"}
)
View Source
var (
	VideoResolutions = []string{"Processing", "240p", "360p", "480p", "720p", "1080p"}
)

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