models

package
v0.0.0-...-0246943 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeUser

type ChangeUser struct {
	Id    int32  `json:"id" binding:"required"`
	Email string `json:"email" binding:"required"`
	Name  string `json:"name" binding:"required"`
}

type CreateUser

type CreateUser struct {
	Email    string `json:"email" binding:"required"`
	Name     string `json:"name" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type LoginUser

type LoginUser struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type User

type User struct {
	Id    string `gorethink:"id,omitempty" json:"id"`
	Email string `json:"email" gorethink:"email"`
	Name  string `json:"name" gorethink:"name"`
	Salt  string `json:"password" gorethink:"password"`
}

Jump to

Keyboard shortcuts

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