atlas

package
v0.0.0-...-47c0216 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EndpointSuffix is the databases endpoint suffix.
	EndpointSuffix = ".mongodb.net"
)

Variables

This section is empty.

Functions

func IsAtlasEndpoint

func IsAtlasEndpoint(endpoint string) bool

IsAtlasEndpoint returns true if the input URI is an MongoDB Atlas endpoint.

func ParseAtlasEndpoint

func ParseAtlasEndpoint(endpoint string) (string, error)

ParseAtlasEndpoint extracts the database name from the Atlas endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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