Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MongoClientInit ¶ added in v0.1.1
func MongoClientInit(conf *MongoDatabaseConfiguration) (*mongo.Client, error)
Types ¶
type ClientConfig ¶ added in v0.0.5
type ClientConfig struct { Host string Port string Username string Password string DB string Ssl bool InsecureSkipVerify bool ReplicaSet string RetryWrites bool Certificate string Direct bool Proxy string }
func (*ClientConfig) MongoClient ¶ added in v0.0.5
func (c *ClientConfig) MongoClient() (*mongo.Client, error)
type MongoDatabaseConfiguration ¶ added in v0.1.1
type MongoDatabaseConfiguration struct { Config *ClientConfig MaxConnLifetime time.Duration }
type PrivilegeDto ¶
type SingleResultGetRole ¶ added in v0.0.8
type SingleResultGetRole struct { Roles []struct { Role string `json:"role"` Db string `json:"db"` InheritedRoles []struct { Role string `json:"role"` Db string `json:"db"` } `json:"inheritedRoles"` Privileges []struct { Resource struct { Db string `json:"db"` Collection string `json:"collection"` } `json:"resource"` Actions []string `json:"actions"` } `json:"privileges"` } `json:"roles"` }
Click to show internal directories.
Click to hide internal directories.