models

package
v0.0.0-...-9a11bf0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email string

type Endpoint

type Endpoint struct {
	Path    string
	Handler func(w http.ResponseWriter, r *http.Request)
	Login   bool
	Method  string
}

type Ip

type Ip string

type Mac

type Mac string

type Password

type Password string

type User

type User struct {
	Id       primitive.ObjectID `json:"-" bson:"_id,omitempty"`
	PlayerID int                `json:"-"`
	Username Username           `json:"username"`
	Password Password           `json:"password"`
	Email    Email              `json:"email"`
	Macs     []Mac              `json:"-"`
	Ips      []Ip               `json:"-"`
}

type Username

type Username string

Jump to

Keyboard shortcuts

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