helper

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrPrint

func ErrPrint(err error)

func IsCosmosDB

func IsCosmosDB(connectionString string) bool

func IsSlice

func IsSlice(o interface{}) bool

func LoadCertificateAndKey

func LoadCertificateAndKey(data []byte) (*tls.Certificate, error)

func LoadCertificateAndKeyFromFile

func LoadCertificateAndKeyFromFile(path string) (*tls.Certificate, error)

func ParsePassword added in v1.0.4

func ParsePassword(connectionString string) string

ParsePassword parses the password from the connection string and URL encodes it. It's useful when the password contains special characters. Example: mongodb://user:p@ssword@localhost:27017/db -> mongodb://user:p%40word@40localhost:27017/db

Types

This section is empty.

Jump to

Keyboard shortcuts

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