model

package
v0.0.0-...-1ae7566 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookmark

type Bookmark struct {
	ID          bson.ObjectId `bson:"_id,omitempty"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Location    string        `json:"location"`
	Priority    int           `json:"priority"` // Priority (1 -5)
	CreatedBy   string        `json:"createdby"`
	CreatedOn   time.Time     `json:"createdon,omitempty"`
	Tags        []string      `json:"tags,omitempty"`
}

Bookmark type represents the metadata of a bookmark.

type User

type User struct {
	ID           bson.ObjectId `bson:"_id,omitempty" json:"id"`
	FirstName    string        `json:"firstname"`
	LastName     string        `json:"lastname"`
	Email        string        `json:"email"`
	HashPassword []byte        `json:"hashpassword,omitempty"`
}

User type represents the registered user.

Jump to

Keyboard shortcuts

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