rest

package
v0.0.0-...-c0f29ca Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequestParams

func NewRequestParams(r *http.Request) *meta.RequestParams

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.BetaService, auth service.AuthService, config env.CommonConfig) *Handler

func (*Handler) Authenticator

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

func (*Handler) Authorizer

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

func (*Handler) Count

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

func (*Handler) Get

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

func (*Handler) GetOne

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

func (*Handler) Patch

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

func (*Handler) Post

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

func (*Handler) PostOne

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

func (*Handler) UserSetter

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

Jump to

Keyboard shortcuts

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