accessor

package
v0.33.19 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessor

type Accessor struct {
	RequestID string
	IP        string
	auth.Auth
	Login bool
}

func GetFromCtx added in v0.30.16

func GetFromCtx(c echo.Context) *Accessor

func NewFromCtx added in v0.30.16

func NewFromCtx(c echo.Context) *Accessor

func (*Accessor) AllowNSFW

func (a *Accessor) AllowNSFW() bool

func (*Accessor) Free added in v0.30.16

func (a *Accessor) Free()

func (Accessor) Log

func (a Accessor) Log() zap.Field

func (Accessor) MarshalLogObject

func (a Accessor) MarshalLogObject(encoder zapcore.ObjectEncoder) error

func (*Accessor) SetAuth

func (a *Accessor) SetAuth(auth auth.Auth)

Jump to

Keyboard shortcuts

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