api

package
v0.0.0-...-a953039 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(next echo.HandlerFunc) echo.HandlerFunc

Its HARD Auth if not authenticated/authorized Get the fuck Out

func Init

func Init(e *echo.Echo)

func InitImage

func InitImage(g *echo.Group)

func InitPost

func InitPost(g *echo.Group)

func InitUser

func InitUser(g *echo.Group)

func SoftAuth

func SoftAuth(next echo.HandlerFunc) echo.HandlerFunc

Soft Auth implement a way to identify user without kicking them out

Types

type CustomValidator

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

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

type JwtClaims

type JwtClaims struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	jwt.StandardClaims
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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