models

package
v0.0.0-...-ea254d9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserCollection = "users"

Functions

This section is empty.

Types

type User

type User struct {
	ObjId     primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
	Id        int                `bson:"id," json:"id"`
	Name      string             `bson:"first_name" json:"first_name"`
	Surname   string             `bson:"last_name" json:"last_name"`
	Idnp      string             `bson:"idnp" json:"idnp"`
	Email     string             `bson:"email" json:"email"`
	IpAddress string             `bson:"ip_address" json:"ip_address"`
}

type Users

type Users []User

Jump to

Keyboard shortcuts

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