mongo

package
v0.0.0-...-1c02ac9 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRepos

func InitRepos(ctx context.Context, c *repo.Container, mc *mongo.Client, databaseName string, useTransaction bool) error

func IsDupErr

func IsDupErr(err error) bool

func NewOrganization

func NewOrganization(client *mongox.Client) repo.Organization

func NewPlugin

func NewPlugin(client *mongox.Client) repo.Plugin

func NewUser

func NewUser(client *mongox.Client) repo.User

Types

type Sort

type Sort struct {
	Key string
	Val int
}

func NewSort

func NewSort(sort string) (*Sort, error)

func (*Sort) AfterCondition

func (s *Sort) AfterCondition(sc *searchCursor) bson.M

func (*Sort) AfterOp

func (s *Sort) AfterOp() string

func (*Sort) BeforeCondition

func (s *Sort) BeforeCondition(sc *searchCursor) bson.M

func (*Sort) BeforeOp

func (s *Sort) BeforeOp() string

func (*Sort) SortOption

func (s *Sort) SortOption() bson.D

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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