cosmetics

package
v0.0.0-...-6d36bb5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const COSMETICS_CACHE_LIFETIME = time.Hour

Variables

This section is empty.

Functions

func New

func New(gCtx global.Context) rest.Route

Types

type Route

type Route struct {
	Ctx global.Context
	// contains filtered or unexported fields
}

func (*Route) Config

func (r *Route) Config() rest.RouteConfig

Config implements rest.Route

func (*Route) Handler

func (r *Route) Handler(ctx *rest.Ctx) errors.APIError

Get Cosmetics @Summary Get Cosmetics @Description Get all active cosmetics and the users assigned to them @Tags cosmetics @Param user_identifier query string false "one of 'object_id', 'twitch_id' or 'login'" @Produce json @Success 200 {object} model.CosmeticsMap @Router /cosmetics [get]

Jump to

Keyboard shortcuts

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