rest

package
v0.0.0-...-4a3359c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOptions

func ParseOptions(r *http.Request) meta.ImageOptions

func ProvideRoutes

func ProvideRoutes(rest *Handler) *chi.Mux

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(service service.ContentService, auth core.AuthService) *Handler

func (*Handler) CacheController

func (h *Handler) CacheController(next http.Handler) http.Handler

func (*Handler) Get

func (h *Handler) Get(w http.ResponseWriter, r *http.Request)

func (*Handler) GetCropped

func (h *Handler) GetCropped(w http.ResponseWriter, r *http.Request)

func (*Handler) GetResized

func (h *Handler) GetResized(w http.ResponseWriter, r *http.Request)

func (*Handler) GetThumbnail

func (h *Handler) GetThumbnail(w http.ResponseWriter, r *http.Request)

func (*Handler) HealthZ

func (h *Handler) HealthZ(w http.ResponseWriter, r *http.Request)

func (*Handler) Post

func (h *Handler) Post(w http.ResponseWriter, r *http.Request)

func (*Handler) ReadyZ

func (h *Handler) ReadyZ(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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