Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (*Collection) Document ¶
func (coll *Collection) Document(documentID string) *Document
Initilize the document with the document id.
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) Collection ¶
func (db *Database) Collection(name string) *Collection
Initilize a new collection
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document is a wrapper for a document in a collection.
type MongoRPCClient ¶
type MongoRPCClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(address string) *MongoRPCClient
func (*MongoRPCClient) Connect ¶
func (c *MongoRPCClient) Connect(opts ...grpc.DialOption) (*grpc.ClientConn, error)
func (*MongoRPCClient) Database ¶
func (client *MongoRPCClient) Database(name string) *Database
Initiliaze a new database
Click to show internal directories.
Click to hide internal directories.