model

package
v0.0.0-...-ffd0b7c Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveNewToken

func SaveNewToken(t, ip string) error

func SaveRequest

func SaveRequest(tokenID string, c *gin.Context)

Types

type Request

type Request struct {
	ID          int64
	TokenID     string
	ReqMethod   string
	ClientIP    string
	ReqHeaders  json.RawMessage
	RespHeaders json.RawMessage
	CreatedAt   time.Time
}

func GetAllTokenRequests

func GetAllTokenRequests(tokenID string) (requests []Request, err error)

type Token

type Token struct {
	ID        int64
	TokenID   string
	ClientIP  string
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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