MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / SubprotocolString

Method SubprotocolString

db/blip_subprotocol.go:39–41  ·  view source on GitHub ↗

Format must match the AppProtocolId provided by the peer (CBLite / ISGR)

()

Source from the content-addressed store, hash-verified

37
38// Format must match the AppProtocolId provided by the peer (CBLite / ISGR)
39func (v CBMobileSubprotocolVersion) SubprotocolString() string {
40 return cbMobileBLIPSubprotocolPrefix + strconv.Itoa(int(v))
41}
42
43// ParseSubprotocolString takes a 'CBMobile_' prefixed string and returns the subprotocol version.
44func ParseSubprotocolString(s string) (CBMobileSubprotocolVersion, error) {

Calls

no outgoing calls