mongodblib

package
v0.0.0-...-cbd7831 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func Collection

func Collection() *client

func DAO

func DAO(name string) *daoImpl

func Init

func Init(cfg *Config) error

Types

type Config

type Config struct {
	Conn    string `json:"conn"       required:"true"`
	DBName  string `json:"db"         required:"true"`
	CAFile  string `json:"ca_file"`
	Timeout int64  `json:"timeout"`
}

func (*Config) SetDefault

func (cfg *Config) SetDefault()

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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