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

Method Encode

base/collection_gocb.go:551–554  ·  view source on GitHub ↗

Encode applies raw binary transcoding behaviour to encode a Go type.

(value interface{})

Source from the content-addressed store, hash-verified

549
550// Encode applies raw binary transcoding behaviour to encode a Go type.
551func (t *SGRawTranscoder) Encode(value interface{}) ([]byte, uint32, error) {
552 return gocb.NewRawBinaryTranscoder().Encode(value)
553
554}
555
556// GetCollectionID sets the kv CollectionID for the current collection. In the case of Couchbase Server not supporting collection, returns DefaultCollectionID.
557func (c *Collection) GetCollectionID() uint32 {

Callers

nothing calls this directly

Calls 1

EncodeMethod · 0.65

Tested by

no test coverage detected