model

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthStatusSucceed = "succeed"
	AuthStatusFailed  = "failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthStatus added in v0.0.18

type AuthStatus string

type Authorization added in v0.0.10

type Authorization struct {
	Token
	Status AuthStatus `json:"status"`
	Error  *string    `json:"error,omitempty"`
	IP     string     `json:"ip"`
	Time   time.Time  `json:"timestamp"`
}

type BlackListItem added in v0.0.14

type BlackListItem struct {
	IPv4    string `json:"ipv4" db:"ipv4"`
	Enabled bool   `json:"enabled" db:"enabled"`
}

type Token

type Token struct {
	ID      string `json:"id" db:"id"`
	Name    string `json:"name" db:"name"`
	Enabled bool   `json:"enabled" db:"enabled"`
}

Jump to

Keyboard shortcuts

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