mongodb

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartColl

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

func NewChartColl

func NewChartColl() *ChartColl

func (*ChartColl) Create

func (c *ChartColl) Create(obj *models.Chart) error

func (*ChartColl) Delete

func (c *ChartColl) Delete(name string) error

func (*ChartColl) EnsureIndex

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

func (*ChartColl) Exist

func (c *ChartColl) Exist(name string) bool

func (*ChartColl) Get

func (c *ChartColl) Get(name string) (*models.Chart, error)

func (*ChartColl) GetCollectionName

func (c *ChartColl) GetCollectionName() string

func (*ChartColl) List

func (c *ChartColl) List() ([]*models.Chart, error)

func (*ChartColl) Update

func (c *ChartColl) Update(obj *models.Chart) error

Jump to

Keyboard shortcuts

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