models

package
v0.0.0-...-32278fe Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

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