Documentation ¶
Index ¶
- type Client
- func (c *Client) CountDocuments(ctx context.Context, collection string, filter interface{}) (int64, error)
- func (c *Client) DeleteMany(ctx context.Context, collection string, filter interface{}) (int64, error)
- func (c *Client) DeleteOne(ctx context.Context, collection string, filter interface{}) (int64, error)
- func (c *Client) Drop(ctx context.Context, collection string) error
- func (c *Client) Find(ctx context.Context, collection string, filter interface{}, ...) error
- func (c *Client) FindOne(ctx context.Context, collection string, filter interface{}, result interface{}) error
- func (c *Client) InsertMany(ctx context.Context, collection string, documents []interface{}) ([]interface{}, error)
- func (c *Client) InsertOne(ctx context.Context, collection string, document interface{}) (interface{}, error)
- func (c *Client) UpdateByID(ctx context.Context, collection string, id interface{}, update interface{}) (int64, error)
- func (c *Client) UpdateMany(ctx context.Context, collection string, filter interface{}, update interface{}) (int64, error)
- func (c *Client) UpdateOne(ctx context.Context, collection string, filter interface{}, update interface{}) error
- type Config
- type Logger
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CountDocuments ¶
func (*Client) DeleteMany ¶
func (*Client) InsertMany ¶
func (*Client) UpdateByID ¶
func (*Client) UpdateMany ¶
type Metrics ¶
type Metrics interface { NewCounter(name, desc string) NewUpDownCounter(name, desc string) NewHistogram(name, desc string, buckets ...float64) NewGauge(name, desc string) IncrementCounter(ctx context.Context, name string, labels ...string) DeltaUpDownCounter(ctx context.Context, name string, value float64, labels ...string) RecordHistogram(ctx context.Context, name string, value float64, labels ...string) SetGauge(name string, value float64, labels ...string) }
Click to show internal directories.
Click to hide internal directories.