mongodb

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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