accessor

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 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

func Put

func Put(a *Accessor)

Types

type Accessor

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

func Get

func Get() *Accessor

func (*Accessor) AllowNSFW

func (a *Accessor) AllowNSFW() bool

func (*Accessor) FillBasicInfo

func (a *Accessor) FillBasicInfo(c *fiber.Ctx)

func (Accessor) Log added in v0.23.0

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 domain.Auth)

Jump to

Keyboard shortcuts

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