Documentation ¶
Index ¶
- Variables
- type JWTData
- type RequestContextImpl
- func (r RequestContextImpl) App() interfaces.App
- func (r RequestContextImpl) Authenticated() bool
- func (r RequestContextImpl) Claims() *auth.JWTClaims
- func (r RequestContextImpl) Config() interfaces.AppConfig
- func (r RequestContextImpl) Context() context.Context
- func (r RequestContextImpl) Dao() interfaces.AppDaos
- func (r RequestContextImpl) ID() uuid.UUID
- func (r RequestContextImpl) IsAdmin() bool
- func (r RequestContextImpl) IsUser() bool
- func (r RequestContextImpl) JSON(dest interface{}) error
- func (r RequestContextImpl) JSONV(dest interface{}) error
- func (r RequestContextImpl) Logger() *zap.Logger
- func (r RequestContextImpl) Req() *http.Request
- func (r RequestContextImpl) Services() interfaces.AppServices
- func (r RequestContextImpl) Token() *jwt.Token
Constants ¶
This section is empty.
Variables ¶
View Source
var V validator.Validate
Functions ¶
This section is empty.
Types ¶
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 (r RequestContextImpl) App() interfaces.App
func (RequestContextImpl) Authenticated ¶
func (r RequestContextImpl) Authenticated() bool
func (RequestContextImpl) Claims ¶
func (r RequestContextImpl) Claims() *auth.JWTClaims
func (RequestContextImpl) Config ¶
func (r RequestContextImpl) Config() interfaces.AppConfig
func (RequestContextImpl) Context ¶
func (r RequestContextImpl) Context() context.Context
func (RequestContextImpl) Dao ¶
func (r RequestContextImpl) Dao() interfaces.AppDaos
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 (r RequestContextImpl) Services() interfaces.AppServices
func (RequestContextImpl) Token ¶
func (r RequestContextImpl) Token() *jwt.Token
Click to show internal directories.
Click to hide internal directories.