api

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.0.0

type Handler interface {
	AuthSetHandler(ctx *fasthttp.RequestCtx)
	AuthResetHandler(ctx *fasthttp.RequestCtx)
	CaptchaVerifyHandler(ctx *fasthttp.RequestCtx)
	FullForwardedHandler(ctx *fasthttp.RequestCtx)
	Healthcheck() error
}

type HttpHandler added in v1.0.0

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

func NewHttp added in v1.0.0

func NewHttp(config config.Config, service api.Service, captcha captcha.Provider) *HttpHandler

func (*HttpHandler) AuthResetHandler added in v1.0.0

func (h *HttpHandler) AuthResetHandler(ctx *fasthttp.RequestCtx)

func (*HttpHandler) AuthSetHandler added in v1.0.0

func (h *HttpHandler) AuthSetHandler(ctx *fasthttp.RequestCtx)

func (*HttpHandler) CaptchaVerifyHandler added in v1.1.0

func (h *HttpHandler) CaptchaVerifyHandler(ctx *fasthttp.RequestCtx)

func (*HttpHandler) FullForwardedHandler added in v1.0.0

func (h *HttpHandler) FullForwardedHandler(ctx *fasthttp.RequestCtx)

func (*HttpHandler) FullForwardedHandlerWithBody added in v1.0.0

func (h *HttpHandler) FullForwardedHandlerWithBody(ctx *fasthttp.RequestCtx, body interface{})

func (*HttpHandler) Healthcheck added in v1.0.0

func (h *HttpHandler) Healthcheck() error

func (*HttpHandler) Login added in v1.0.0

func (h *HttpHandler) Login(ctx *fasthttp.RequestCtx) error

func (*HttpHandler) Logout added in v1.0.0

func (h *HttpHandler) Logout(ctx *fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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