Documentation ¶
Index ¶
- Constants
- func Set(name string, client *Client)
- type Client
- func (o *Client) Connect(uri string, db string) error
- func (o *Client) DeleteOne(collection string, filter Filter) error
- func (o *Client) FindOne(collection string, filter Filter, result interface{}) error
- func (o *Client) InsertOne(collection string, document interface{}) error
- func (o *Client) Ping() error
- func (o *Client) UpdateOne(collection string, filter Filter, document interface{}) error
- func (o *Client) UpsertOne(collection string, filter Filter, document interface{}) error
- type Filter
Constants ¶
View Source
const (
NoFoundError string = "mongo: no documents in result"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.