mongo

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

type Mongo struct {
	// contains filtered or unexported fields
}

Mongo contains functions for language mongodb.

func New

func New(db *mongo.Database) *Mongo

New to create new language mongodb.

func (*Mongo) GetAll

func (m *Mongo) GetAll(ctx context.Context) ([]entity.Language, int, int, error)

GetAll to get all.

func (*Mongo) GetAllIDs

func (m *Mongo) GetAllIDs(ctx context.Context) ([]int64, int, error)

GetAllIDs to get all by ids.

func (*Mongo) UpdateByID

func (m *Mongo) UpdateByID(ctx context.Context, id int64, data entity.Language) (int, error)

UpdateByID to update by id.

Jump to

Keyboard shortcuts

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