Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultHttpPort is the default HTTP port to use to connect to Couchbase Server. DefaultHttpPort = 8091 // DefaultSslHttpPort is the default HTTPS port to use to connect to Couchbase Server. DefaultSslHttpPort = 18091 // DefaultMemdPort is the default memd port to use to connect to Couchbase Server. DefaultMemdPort = 11210 // DefaultSslMemdPort is the default memd SSL port to use to connect to Couchbase Server. DefaultSslMemdPort = 11207 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnSpec ¶
type ConnSpec struct { Scheme string Addresses []Address Bucket string Options map[string][]string }
ConnSpec describes a connection specification.
func (ConnSpec) GetOptionString ¶
GetOptionString returns the specified option value for the ConnSpec.
func (ConnSpec) SrvRecordName ¶
SrvRecordName returns the record name for the ConnSpec.
type ResolvedConnSpec ¶
type ResolvedConnSpec struct { UseSsl bool MemdHosts []Address HttpHosts []Address NSServerHost *Address Bucket string Options map[string][]string SrvRecord *SrvRecord }
ResolvedConnSpec is the result of resolving a ConnSpec.
func Resolve ¶
func Resolve(connSpec ConnSpec) (out ResolvedConnSpec, err error)
Resolve parses a ConnSpec into a ResolvedConnSpec.
Click to show internal directories.
Click to hide internal directories.