dao

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBName            = "blog"
	PostColName       = "posts"
	UserColName       = "users"
	PostSeriesColName = "post_series"
	CategoryColName   = "categories"
)

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context)

Types

type Type

type Type struct {
	// contains filtered or unexported fields
}
var Instance *Type

func New

func New(db mongo.DB) *Type

func (*Type) GetCategoriesCol

func (d *Type) GetCategoriesCol() *mgo.Collection

func (*Type) GetPostSeriesCol

func (d *Type) GetPostSeriesCol() *mgo.Collection

func (*Type) GetPostsCol

func (d *Type) GetPostsCol() *mgo.Collection

func (*Type) GetUsersCol

func (d *Type) GetUsersCol() *mgo.Collection

Jump to

Keyboard shortcuts

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