entities

package
v0.0.0-...-9514a38 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateMetadata

func AggregateMetadata(ret []bson.M, pipeline interface{}) (err error)

AggregateMetadata might return anything

func GetMetadata

func GetMetadata(datas []Metadata, filter interface{}) (err error)

GetMetadata is to get many metadata documents

func InsertMetadata

func InsertMetadata(data Metadata) (err error)

InsertMetadata is to insert metadata

func UpdateMetadata

func UpdateMetadata(updateTo interface{}, filter interface{}) (err error)

UpdateMetadata is to update all metadata that get through filter

Types

type Metadata

type Metadata struct {
	Name      string
	Version   int
	Hash      string
	IsDeleted bool
}

Metadata is a struct in mongo

Jump to

Keyboard shortcuts

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