mongo

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCollections = []func(db *Mongo) error{}
View Source
var DescBson = getBsonFieldObject[model.EventDesc]()
View Source
var ErrReleaseNotFound = errors.New("release not found")

Functions

This section is empty.

Types

type Mongo

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

func New

func New(ctx context.Context, wg *sync.WaitGroup, conf configuration.Config) (*Mongo, error)

func (*Mongo) GetEventDescriptionsByDeviceAndService

func (this *Mongo) GetEventDescriptionsByDeviceAndService(deviceId string, serviceId string) (result []model.EventDesc, err error)

func (*Mongo) GetEventDescriptionsByDeviceGroup

func (this *Mongo) GetEventDescriptionsByDeviceGroup(deviceGroupId string) (result []model.EventDesc, err error)

func (*Mongo) GetEventDescriptionsByEventId

func (this *Mongo) GetEventDescriptionsByEventId(eventId string) (result []model.EventDesc, err error)

func (*Mongo) GetEventDescriptionsByImportId

func (this *Mongo) GetEventDescriptionsByImportId(importId string) (result []model.EventDesc, err error)

func (*Mongo) GetEventDescriptionsByServiceId

func (this *Mongo) GetEventDescriptionsByServiceId(serviceId string) (result []model.EventDesc, err error)

func (*Mongo) RemoveEventDescriptionsByDeploymentId

func (this *Mongo) RemoveEventDescriptionsByDeploymentId(deploymentId string) (deletedCount int64, err error)

func (*Mongo) SetEventDescription

func (this *Mongo) SetEventDescription(element model.EventDesc) (err error)

Jump to

Keyboard shortcuts

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