Discover Packages
github.com/chrisprobst/echo
cookbook
twitter
model
package
Version:
v3.1.0-rc.1+incompatible
Opens a new window with list of versions in this module.
Published: Mar 3, 2017
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Post struct {
ID bson .ObjectId `json:"id" bson:"_id,omitempty"`
To string `json:"to" bson:"to"`
From string `json:"from" bson:"from"`
Message string `json:"message" bson:"message"`
}
type User struct {
ID bson .ObjectId `json:"id" bson:"_id,omitempty"`
Email string `json:"email" bson:"email"`
Password string `json:"password,omitempty" bson:"password"`
Token string `json:"token,omitempty" bson:"-"`
Followers []string `json:"followers,omitempty" bson:"followers,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.