db

package
v0.0.0-...-9d9a824 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosePrimarySession

func ClosePrimarySession()

func InitPrimarySession

func InitPrimarySession() error

Types

type DocumentExistsError

type DocumentExistsError struct {
	Message string
}

func (DocumentExistsError) Error

func (e DocumentExistsError) Error() string

type Session

type Session struct {
	Client *mongo.Client
}
var PrimarySession Session

func NewSession

func NewSession(ctx context.Context) (*Session, error)

func (Session) Close

func (sess Session) Close(ctx context.Context)

func (Session) CourseRecords

func (sess Session) CourseRecords() *mongo.Collection

func (Session) Courses

func (sess Session) Courses() *mongo.Collection

func (Session) Plans

func (sess Session) Plans() *mongo.Collection

func (Session) TermRecords

func (sess Session) TermRecords() *mongo.Collection

func (Session) Timelines

func (sess Session) Timelines() *mongo.Collection

func (Session) Users

func (sess Session) Users() *mongo.Collection

Jump to

Keyboard shortcuts

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