models

package
v0.0.0-...-bb27c19 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feedback

type Feedback struct {
	Id        bson.ObjectId `json:"id" bson:"_id"`
	Message   string        `json:"message"`
	Emoji     int           `json:"emoji"`
	Email     string        `json:"email"`
	UserID    string        `json:"user_id"`
	Domain    string        `json:"domain"`
	URL       string        `json:"url"`
	CreatedAt time.Time     `json:"created_at"`
}

Feedback TODO

func FeedbackList

func FeedbackList(db *mgo.Database) ([]*Feedback, error)

FeedbackList return a list of feedback

func (*Feedback) Get

func (f *Feedback) Get(db *mgo.Database) error

Get return the spefic feedback from the DB

func (*Feedback) Insert

func (f *Feedback) Insert(db *mgo.Database) error

Create a feedback from the object

Jump to

Keyboard shortcuts

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