Documentation
¶
Index ¶
- type Client
- func (c *Client) AddFilterDimension(ctx context.Context, fID string, dimension model.Dimension) error
- func (c *Client) Checker(ctx context.Context, state *healthcheck.CheckState) error
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) Conn() *mongo.MongoConnection
- func (c *Client) CreateEtag(current, update interface{}) (eTag string, err error)
- func (c *Client) CreateFilter(ctx context.Context, f *model.Filter) error
- func (c *Client) CreateFilterOutput(ctx context.Context, f *model.FilterOutput) error
- func (c *Client) GetFilter(ctx context.Context, fID string) (*model.Filter, error)
- func (c *Client) GetFilterDimensions(ctx context.Context, fID string, limit, offset int) ([]model.Dimension, int, error)
- type Collection
- type Collections
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client responsible for querying mongodb
func (*Client) AddFilterDimension ¶
func (*Client) Checker ¶
func (c *Client) Checker(ctx context.Context, state *healthcheck.CheckState) error
Checker is called by the healthcheck library to check the health state of this mongoDB instance
func (*Client) Conn ¶
func (c *Client) Conn() *mongo.MongoConnection
Conn returns the underlying mongodb connection.
func (*Client) CreateEtag ¶
CreateEtag creates a new etag for when an update request is made.
func (*Client) CreateFilter ¶
CreateFilter creates a new Filter in the CantabularFilters collection
func (*Client) CreateFilterOutput ¶
CreateFilterOutput creates a new FilterOutputs in the CantabularFilters colllection
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
Collection represents a collection in mongodb. Holds The name(s), lock client and any other relevant information.
type Collections ¶
type Collections struct {
// contains filtered or unexported fields
}
Collections holds information about the mongodb collections relevant to this service
Click to show internal directories.
Click to hide internal directories.