Documentation
¶
Index ¶
- func EncodeConnectionString(connectionString string) string
- func ErrPrint(err error)
- func IsCosmosDB(connectionString string) bool
- func IsSlice(o interface{}) bool
- func LoadCertificateAndKey(data []byte) (*tls.Certificate, error)
- func LoadCertificateAndKeyFromFile(path string) (*tls.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeConnectionString ¶ added in v1.0.5
EncodeConnectionString URL encodes the password and the username from the connection string. It's useful when they contains special characters. Example: mongodb://user:p@ssword@localhost:27017/db -> mongodb://user:p%40word@40localhost:27017/db If there's any conflict, the function returns the original connection string.
func IsCosmosDB ¶
func LoadCertificateAndKey ¶
func LoadCertificateAndKey(data []byte) (*tls.Certificate, error)
func LoadCertificateAndKeyFromFile ¶
func LoadCertificateAndKeyFromFile(path string) (*tls.Certificate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.