mongo

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountModel

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

func NewAccountModel

func NewAccountModel(ctx context.Context, uri, database, collection string) (*AccountModel, error)

func (*AccountModel) Delete

func (am *AccountModel) Delete(ctx context.Context, id any) error

func (*AccountModel) GetAny

func (am *AccountModel) GetAny(ctx context.Context) (*models.Account, error)

func (*AccountModel) Insert

func (am *AccountModel) Insert(ctx context.Context, acc *models.Account) (id any, err error)

func (*AccountModel) Len

func (am *AccountModel) Len(ctx context.Context) int64

Jump to

Keyboard shortcuts

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