Documentation ¶
Index ¶
- type FeaturePage
- type MongoClient
- func (c *MongoClient) AddFeatures(ctx context.Context, feats ...features.Feature) error
- func (c *MongoClient) GetFeaturesByID(ctx context.Context, ids ...string) (features.FeatureCollection, error)
- func (c *MongoClient) ListFeaturesByType(ctx context.Context, featureType string, pageInfo PageOptions) (FeaturePage, error)
- type PageOptions
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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.