mgo

package
v0.0.0-...-2a6e696 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMeetingMongo

func NewMeetingMongo(db *mongo.Database) (database.Meeting, error)

func NewUserMongo

func NewUserMongo(db *mongo.Database) (database.User, error)

Types

type MeetingMgo

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

func (*MeetingMgo) Create

func (u *MeetingMgo) Create(ctx context.Context, meetings []*model.MeetingInfo) error

func (*MeetingMgo) Delete

func (u *MeetingMgo) Delete(ctx context.Context, meetingID string) error

func (*MeetingMgo) FindByStatus

func (u *MeetingMgo) FindByStatus(ctx context.Context, status []string, userID string) ([]*model.MeetingInfo, error)

func (*MeetingMgo) Take

func (u *MeetingMgo) Take(ctx context.Context, meetingID string) (user *model.MeetingInfo, err error)

func (*MeetingMgo) Update

func (u *MeetingMgo) Update(ctx context.Context, meetingID string, updateData map[string]any) error

type UserMgo

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

func (*UserMgo) Create

func (u *UserMgo) Create(ctx context.Context, users []*model.User) error

func (*UserMgo) Take

func (u *UserMgo) Take(ctx context.Context, userID string) (user *model.User, err error)

func (*UserMgo) TakeByAccount

func (u *UserMgo) TakeByAccount(ctx context.Context, account string) (user *model.User, err error)

Jump to

Keyboard shortcuts

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