models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Host           string
	Port           string
	User           string
	Password       string
	Replicaset     string
	TLS            bool
	URI            string
	SaveConnection bool
}

Connection contains the values needed to connect to a MongoDB instance. It is used by the main application to bind the ui.FormWidget form data and pass it to mongo.Connect.

If URI is set only this field is used, otherwise the connection URI is built from the other fields.

The SaveConnection flag indicates whether the connection should be stored.

Jump to

Keyboard shortcuts

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