mongo

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Profile = "mongo"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*mongo.Client
}

func (*Client) Connect

func (c *Client) Connect(p *Properties) (err error)

type Properties

type Properties struct {
	at.ConfigurationProperties `value:"mongo"`
	Port                       int    `json:"port" default:"5672"`
	Host                       string `json:"host" default:"127.0.0.1"`
	Username                   string `json:"username" default:"admin"`
	Password                   string `json:"password" default:"password"`
	Timeout                    string `json:"timeout" default:"5s"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL