mongo

package
v0.0.0-...-f143412 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: AGPL-3.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 FeaturePage

type FeaturePage struct {
	PageInfo PageOptions       `json:",inline"`
	Features features.Features `json:"features"`
}

type MongoClient

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

func GetClient

func GetClient(ctx context.Context) *MongoClient

func (*MongoClient) AddFeatures

func (c *MongoClient) AddFeatures(ctx context.Context, feats ...features.Feature) error

func (*MongoClient) GetFeaturesByID

func (c *MongoClient) GetFeaturesByID(ctx context.Context, ids ...string) (features.FeatureCollection, error)

func (*MongoClient) ListFeaturesByType

func (c *MongoClient) ListFeaturesByType(ctx context.Context, featureType string, pageInfo PageOptions) (FeaturePage, error)

type PageOptions

type PageOptions struct {
	Page     uint `json:"page"`
	PageSize uint `json:"pageSize"`
}

Jump to

Keyboard shortcuts

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