models

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 1 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.

type CountResult added in v0.3.2

type CountResult struct {
	Count    int64
	Error    error
	Duration time.Duration
}

type QueryResult added in v0.3.2

type QueryResult struct {
	Result   []map[string]interface{}
	Error    error
	Duration time.Duration
}

Jump to

Keyboard shortcuts

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