mappers

package
v0.0.0-...-0f031a4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersonalAccessToken

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

PersonalAccessToken represents the mapper used for interacting with PersonalAccessToken documents.

func NewPersonalAccessToken

func NewPersonalAccessToken(client *mongo.Client) *PersonalAccessToken

func (PersonalAccessToken) Create

func (PersonalAccessToken) Find

func (PersonalAccessToken) FindOne

func (PersonalAccessToken) Update

type Task

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

Task represents the mapper used for interacting with Task documents.

func NewTask

func NewTask(client *mongo.Client) *Task

func (*Task) Create

func (t *Task) Create(ctx context.Context, model *models.Task) (*models.Task, error)

func (*Task) Find

func (t *Task) Find(ctx context.Context, filter any, limit int, skip int) (int64, models.Tasks, error)

func (*Task) FindOneById

func (t *Task) FindOneById(ctx context.Context, id string) (*models.Task, error)

func (*Task) Update

func (t *Task) Update(ctx context.Context, model *models.Task) (*models.Task, error)

type User

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

User represents the mapper used for interacting with User documents.

func NewUser

func NewUser(client *mongo.Client) *User

func (*User) Create

func (u *User) Create(ctx context.Context, model *models.User) (*models.User, error)

func (*User) Find

func (u *User) Find(ctx context.Context, filter any, limit int, skip int) (int64, models.Users, error)

func (*User) FindOne

func (u *User) FindOne(ctx context.Context, filter any) (*models.User, error)

func (*User) Update

func (u *User) Update(ctx context.Context, model *models.User) (*models.User, error)

Jump to

Keyboard shortcuts

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