class

package
v0.0.0-...-ff6f743 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DBLasting = false

Variables

This section is empty.

Functions

func Config

func Config()

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 (m *Model) OpenDB() error

Jump to

Keyboard shortcuts

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