Documentation
¶
Overview ¶
Package dao contains all the data access object used in the application.
Index ¶
- type Arweave
- type Blog
- func (d *Blog) GetCategoriesCol() *mongoLib.Collection
- func (d *Blog) GetPostSeriesCol() *mongoLib.Collection
- func (d *Blog) GetPostsCol() *mongoLib.Collection
- func (d *Blog) GetUsersCol() *mongoLib.Collection
- func (d *Blog) PostTagsCol() *mongoLib.Collection
- func (d *Blog) SaveToArweave(ctx context.Context, data any) (fileID string, err error)
- func (d *Blog) ValidateLogin(ctx context.Context, account, rawPassword string) (u *model.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct {
// contains filtered or unexported fields
}
Blog dao type
func (*Blog) GetCategoriesCol ¶
func (d *Blog) GetCategoriesCol() *mongoLib.Collection
GetCategoriesCol get categories collection
func (*Blog) GetPostSeriesCol ¶
func (d *Blog) GetPostSeriesCol() *mongoLib.Collection
GetPostSeriesCol get post series collection
func (*Blog) GetPostsCol ¶
func (d *Blog) GetPostsCol() *mongoLib.Collection
GetPostsCol get posts collection
func (*Blog) GetUsersCol ¶
func (d *Blog) GetUsersCol() *mongoLib.Collection
GetUsersCol get users collection
func (*Blog) PostTagsCol ¶
func (d *Blog) PostTagsCol() *mongoLib.Collection
PostTagsCol get post tags collection
func (*Blog) SaveToArweave ¶
SaveToArweave save data to arweave
Click to show internal directories.
Click to hide internal directories.