models

package
v0.0.0-...-d59d7d1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserPasswordEncrypt

func UserPasswordEncrypt(pass []byte) []byte

Types

type Post

type Post struct {
	ID    bson.ObjectId `json:"id" bson:"_id,omitempty"`
	Title string        `json:"title" bson:"title"`
	Body  string        `json:"body" bson:"body"`
	User  string        `json:"user" bsom:"user"`
}

type User

type User struct {
	Username    string `json:"username" bson:"_id,omitempty"`
	Password    []byte `json:"-" bson:"password"`
	NewPassword string `json:"password" bson:"-"`
}

Jump to

Keyboard shortcuts

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