Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Img = Variant("img") Timg = Variant("timg") Variants = map[string]Variant{ "img": Img, "timg": Timg, } VariantExts = map[Variant]string{ Img: ".webp", Timg: ".webp", } )
View Source
var ( Image = Kind("images") Backgrounds = Kind("backgrounds") Kinds = map[string]Kind{ "images": Image, "backgrounds": Backgrounds, } )
Functions ¶
func RegisterController ¶
func RegisterController(v0 *server.V0, c Controller)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(service *Service) Controller
func (*Controller) GetAssetsByID ¶
func (c *Controller) GetAssetsByID(ctx *fiber.Ctx, variantStr string, kindStr string, id string) error
func (*Controller) GetAssetsByV ¶
func (c *Controller) GetAssetsByV(ctx *fiber.Ctx, variantStr string) error
func (*Controller) GetAssetsByVK ¶
func (c *Controller) GetAssetsByVK(ctx *fiber.Ctx, variantStr string, kindStr string) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(conf *config.Config, repo *avg.VersionRepo) *Service
func (*Service) GetAssetByID ¶
Click to show internal directories.
Click to hide internal directories.