Discover Packages
github.com/bigchange/echo
cookbook
twitter
model
package
Version:
v3.1.0+incompatible
Opens a new window with list of versions in this module.
Published: Apr 26, 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.