Encode applies raw binary transcoding behaviour to encode a Go type.
(value interface{})
| 549 | |
| 550 | // Encode applies raw binary transcoding behaviour to encode a Go type. |
| 551 | func (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. |
| 557 | func (c *Collection) GetCollectionID() uint32 { |