colrepo

package
v0.0.0-...-e91a5b0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database = "COL_DB_DATABASE"
View Source
var Host = "COL_DB_HOST"
View Source
var Password = "COL_DB_PASS"
View Source
var Port = "COL_DB_PORT"
View Source
var Username = "COL_DB_USER_NAME"

Functions

This section is empty.

Types

type ColConfig

type ColConfig struct {
	Username string
	Password string
	Host     string
	Port     string
	Database string
}

type ColDBConn

type ColDBConn interface {
	GetConn() (*mongo.Client, error)
}

func NewColDBConn

func NewColDBConn() (ColDBConn, error)

func NewMongoConn

func NewMongoConn() (ColDBConn, error)

type MongoConn

type MongoConn struct {
	// contains filtered or unexported fields
}

func (MongoConn) GetConn

func (c MongoConn) GetConn() (*mongo.Client, error)

Jump to

Keyboard shortcuts

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