mongoatlas

package
v0.11.607 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username string
	Password string
	Host     string
	Database string
}

func (*Config) GetIngestrURI

func (c *Config) GetIngestrURI() string

type DB

type DB struct {
	Name string
	// contains filtered or unexported fields
}

func NewClient added in v0.11.334

func NewClient(ctx context.Context, c *Config) (*DB, error)

func NewDB

func NewDB(c *Config) (*DB, error)

func (*DB) GetIngestrURI

func (db *DB) GetIngestrURI() (string, error)

func (*DB) Ping added in v0.11.334

func (db *DB) Ping(ctx context.Context) error

type MongoAtlasConnection

type MongoAtlasConnection interface {
	GetIngestrURI() (string, error)
	Ping(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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