shared

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCaFrom added in v0.2.0

func LoadCaFrom(pemFile string) (*x509.CertPool, error)

func LoadKeyPairFrom added in v0.2.0

func LoadKeyPairFrom(pemFile string, privateKeyPemFile string) (tls.Certificate, error)

func MongoSession

func MongoSession(opts MongoSessionOpts) *mgo.Session

func MongoSessionNodeType

func MongoSessionNodeType(session *mgo.Session) (string, error)

func MongoSessionServerVersion

func MongoSessionServerVersion(session *mgo.Session) (string, error)

func RedactMongoUri added in v0.2.0

func RedactMongoUri(uri string) string

Types

type MongoSessionOpts added in v0.2.0

type MongoSessionOpts struct {
	URI                   string
	TLSConnection         bool
	TLSCertificateFile    string
	TLSPrivateKeyFile     string
	TLSCaFile             string
	TLSHostnameValidation bool
}

Jump to

Keyboard shortcuts

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