Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDBConfig ¶
func NewMongoDBConfig ¶
func NewMongoDBConfig(host string, port int, Username, password string) *MongoDBConfig
func (*MongoDBConfig) DSN ¶
func (c *MongoDBConfig) DSN() interface{}
func (*MongoDBConfig) SetPassword ¶
func (c *MongoDBConfig) SetPassword(value string) *MongoDBConfig
func (*MongoDBConfig) SetUsername ¶
func (c *MongoDBConfig) SetUsername(value string) *MongoDBConfig
type MongoDBDriver ¶
func NewMongoDBDriver ¶
func NewMongoDBDriver(config *MongoDBConfig) (*MongoDBDriver, error)
func (*MongoDBDriver) Initalial ¶
func (d *MongoDBDriver) Initalial() error
func (*MongoDBDriver) Ping ¶
func (d *MongoDBDriver) Ping() bool
Click to show internal directories.
Click to hide internal directories.