class

package
v0.0.0-...-5856374 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DBHost = "127.0.0.1"
View Source
const DBLasting = false
View Source
const DBName = "oj"

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Session *mgo.Session
	DB      *mgo.Database
}

func (*Model) CloseDB

func (this *Model) CloseDB()

func (*Model) EncryptPassword

func (this *Model) EncryptPassword(str string) (pwd string, err error)

func (*Model) GetID

func (this *Model) GetID(c string) (id int, err error)

func (*Model) GetTime

func (this *Model) GetTime() (ft string)

func (*Model) OpenDB

func (this *Model) OpenDB() (err error)

Jump to

Keyboard shortcuts

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