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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidTokenClaims = errors.New("invalid token claims")
)

Functions

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.UserService, auth service.AuthService, mail service.MailService,
	interact service.InteractService, config config.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) Delete

func (h *Handler) Delete(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) GetTheme

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

func (*Handler) Guest

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

func (*Handler) HealthZ

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

func (*Handler) Like

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

func (*Handler) Login

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

func (*Handler) Logout

func (h *Handler) Logout(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) Put

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

func (*Handler) ReadyZ

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

func (*Handler) RefreshToken

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

func (*Handler) Remote

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

func (*Handler) SendEmailConfirmation

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

func (*Handler) SendNotification

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

func (*Handler) SendResetPassword

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

func (*Handler) SingUp

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

func (*Handler) Unlike

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

Jump to

Keyboard shortcuts

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