request

package
v0.0.0-...-412dc8c Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var V validator.Validate

Functions

This section is empty.

Types

type JWTData

type JWTData struct {
	SignedToken string
	Token       jwt.Token
	Claims      auth.JWTClaims
}

type RequestContextImpl

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

func NewRequestContext

func NewRequestContext(app interfaces.App, logger *zap.Logger, r *http.Request) (*RequestContextImpl, error)

func (RequestContextImpl) App

func (RequestContextImpl) Authenticated

func (r RequestContextImpl) Authenticated() bool

func (RequestContextImpl) Claims

func (r RequestContextImpl) Claims() *auth.JWTClaims

func (RequestContextImpl) Config

func (RequestContextImpl) Context

func (r RequestContextImpl) Context() context.Context

func (RequestContextImpl) Dao

func (RequestContextImpl) ID

func (r RequestContextImpl) ID() uuid.UUID

func (RequestContextImpl) IsAdmin

func (r RequestContextImpl) IsAdmin() bool

func (RequestContextImpl) IsUser

func (r RequestContextImpl) IsUser() bool

func (RequestContextImpl) JSON

func (r RequestContextImpl) JSON(dest interface{}) error

func (RequestContextImpl) JSONV

func (r RequestContextImpl) JSONV(dest interface{}) error

func (RequestContextImpl) Logger

func (r RequestContextImpl) Logger() *zap.Logger

func (RequestContextImpl) Req

func (r RequestContextImpl) Req() *http.Request

func (RequestContextImpl) Services

func (RequestContextImpl) Token

func (r RequestContextImpl) Token() *jwt.Token

Jump to

Keyboard shortcuts

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