mongodb

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodehostColl

type CodehostColl struct {
	*mongo.Collection
	// contains filtered or unexported fields
}

func NewCodehostColl

func NewCodehostColl() *CodehostColl

func (*CodehostColl) AddCodeHost

func (c *CodehostColl) AddCodeHost(iCodeHost *models.CodeHost) (*models.CodeHost, error)

func (*CodehostColl) CodeHostList

func (c *CodehostColl) CodeHostList() ([]*models.CodeHost, error)

func (*CodehostColl) DeleteCodeHost

func (c *CodehostColl) DeleteCodeHost() error

func (*CodehostColl) DeleteCodeHostByID

func (c *CodehostColl) DeleteCodeHostByID(ID int) error

func (*CodehostColl) EnsureIndex

func (c *CodehostColl) EnsureIndex(ctx context.Context) error

func (*CodehostColl) GetCodeHostByAlias added in v1.12.0

func (c *CodehostColl) GetCodeHostByAlias(alias string) (*models.CodeHost, error)

func (*CodehostColl) GetCodeHostByID

func (c *CodehostColl) GetCodeHostByID(ID int, ignoreDelete bool) (*models.CodeHost, error)

func (*CodehostColl) GetCollectionName

func (c *CodehostColl) GetCollectionName() string

func (*CodehostColl) List

func (c *CodehostColl) List(args *ListArgs) ([]*models.CodeHost, error)

func (*CodehostColl) UpdateCodeHost

func (c *CodehostColl) UpdateCodeHost(host *models.CodeHost) (*models.CodeHost, error)

func (*CodehostColl) UpdateCodeHostByToken

func (c *CodehostColl) UpdateCodeHostByToken(host *models.CodeHost) (*models.CodeHost, error)

type ListArgs

type ListArgs struct {
	Owner   string
	Address string
	Source  string
}

Jump to

Keyboard shortcuts

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