request

package
v0.0.0-...-dec7a45 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Fingerprint string    `gorm:"primaryKey"`
	LocalTime   time.Time `gorm:"primaryKey"`
	Path        string    `gorm:"primaryKey"`
	Method      string    `gorm:"primaryKey"`
	RemoteAddr  string
	StatusCode  int
	Referrer    string
	UserAgent   string
	IsBot       bool
	IsMobile    bool
	IsDesktop   bool
	IsTablet    bool
	OS          string
	OSVersion   string
	Device      string
}

func New

func New(localTime time.Time, statusCode int, method, remoteAddr, path, referrer, userAgent string) *Request

func (*Request) Save

func (req *Request) Save() error

Jump to

Keyboard shortcuts

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