database

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoClient = &mongoClient{}

Functions

func ConnectMongo

func ConnectMongo()

Types

type Question

type Question struct {
	ID        primitive.ObjectID `bson:"_id,omitempty" json:"id" csv:"-"`
	Question  string             `bson:"question" json:"question" csv:"question"`
	Answer    string             `bson:"answer" json:"answer" csv:"answer"`
	Approved  bool               `bson:"approved" json:"approved" csv:"approved"`
	CreatedAt time.Time          `bson:"createdAt" json:"createdAt" csv:"createdAt"`
	UpdatedAt time.Time          `bson:"updatedAt" json:"updatedAt" csv:"updatedAt"`
}

Jump to

Keyboard shortcuts

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