MCPcopy Create free account
hub / github.com/datastax/cql-proxy / EncodeType

Function EncodeType

codecs/types.go:44–50  ·  view source on GitHub ↗
(dt datatype.DataType, version primitive.ProtocolVersion, val interface{})

Source from the content-addressed store, hash-verified

42}
43
44func EncodeType(dt datatype.DataType, version primitive.ProtocolVersion, val interface{}) ([]byte, error) {
45 c, err := codecFromDataType(dt)
46 if err != nil {
47 return nil, err
48 }
49 return c.Encode(val, version)
50}
51
52func DecodeType(dt datatype.DataType, version primitive.ProtocolVersion, bytes []byte) (interface{}, error) {
53 c, err := codecFromDataType(dt)

Callers 13

proxy.goFile · 0.92
encodeTypeFatalMethod · 0.92
TestProxy_ListenAndServeFunction · 0.92
filterValuesMethod · 0.92
encodeTypeFatalFunction · 0.92
TestEndpoint_NewEndpointFunction · 0.92
makeUUIDFunction · 0.92

Calls 2

codecFromDataTypeFunction · 0.85
EncodeMethod · 0.45

Tested by 7

TestProxy_ListenAndServeFunction · 0.74
TestEndpoint_NewEndpointFunction · 0.74
makeUUIDFunction · 0.74
makeVarcharFunction · 0.74