model

package
v0.0.0-...-7f3434b Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: GPL-3.0, GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *mgo.Database

func GetSession

func GetSession() *mgo.Session

Types

type Event

type Event struct {
	ObjectID bson.ObjectId `json:"id" bson:"_id"`
	Name     string        `json:"name" bson:"name"`
	Date     time.Time     `json:"date" bson:"date"`
	TimeZone string        `json:"timezone" bson:"timezone"`
	ChatID   int64         `json:"chat_id" bson:"chat_id"`
}

func (*Event) Save

func (event *Event) Save() error

Jump to

Keyboard shortcuts

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