mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-11-30 12:05:42 +00:00
11 lines
216 B
Go
11 lines
216 B
Go
//+build sasl
|
|
|
|
package mgo
|
|
|
|
import (
|
|
"labix.org/v2/mgo/sasl"
|
|
)
|
|
|
|
func saslNew(cred Credential, host string) (saslStepper, error) {
|
|
return sasl.New(cred.Username, cred.Password, cred.Mechanism, cred.Service, host)
|
|
}
|