utils

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colored

func Colored(color, text string) string

func GetCommentPreloads

func GetCommentPreloads() map[string]bool

func GetGenrePreloads

func GetGenrePreloads() map[string]bool

func GetProjectPreloads

func GetProjectPreloads() map[string]bool

func GetRatingPreloads

func GetRatingPreloads() map[string]bool

func GetReqPreloads

func GetReqPreloads(r *http.Request, allowed map[string]bool) []string

func GetTrackPreloads

func GetTrackPreloads() map[string]bool

func GetUserPreloads

func GetUserPreloads() map[string]bool

func LogError

func LogError(err error)

Types

type MediaValidity

type MediaValidity struct {
	ObjKey  string
	Checked bool
	Valid   bool
	UserID  uuid.UUID
}

type S3Object

type S3Object struct {
	Bucket string
	Key    string
}

type Sender

type Sender func(c *gin.Context, s string)

func SendStringAsBody

func SendStringAsBody() Sender

func SendStringAsCookie

func SendStringAsCookie(settings http.Cookie) Sender

func SendStringAsHeader

func SendStringAsHeader(k string) Sender

func SendStringAsOAuth2State

func SendStringAsOAuth2State(config *oauth2.Config) Sender

Jump to

Keyboard shortcuts

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