package model

import "github.com/labstack/echo/cookbook/twitter/model"

Index

Types

type Post

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

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

post.go user.go

Version
v3.1.0-rc.1+incompatible
Published
Mar 3, 2017
Platform
js/wasm
Imports
1 packages
Last checked
4 hours ago

Tools for package owners.