Documentation
¶
Overview ¶
types package contains the public API types that are shared between both REST and GraphQL
Index ¶
- Variables
- func Base64StringToByteArray(value interface{}) (interface{}, error)
- func ByteArrayToBase64String(value interface{}) interface{}
- func CqlFormattedStringToDuration(value interface{}) (interface{}, error)
- func DurationToCqlFormattedString(value interface{}) interface{}
- func Float64ToFloat32(value interface{}) (interface{}, error)
- func FloatToInt(value interface{}) (interface{}, error)
- func FromJsonValue(value interface{}, typeInfo gocql.TypeInfo) (interface{}, error)
- func StringerToString(value interface{}) interface{}
- func TimeAsString(value interface{}) interface{}
- func ToJsonValues(rows []map[string]interface{}, table *gocql.TableMetadata) []map[string]interface{}
- type ConditionItem
- type ModificationResult
- type MutationOptions
- type QueryOptions
- type QueryResult
- type Route
Constants ¶
This section is empty.
Variables ¶
View Source
var CqlOperators = map[string]string{
"eq": "=",
"notEq": "!=",
"gt": ">",
"gte": ">=",
"lt": "<",
"lte": "<=",
"in": "IN",
}
CqlOperators contains the CQL operator for a given "graphql" operator
View Source
var StringToBigInt = unmarshallerToText(func() encoding.TextUnmarshaler { return &big.Int{} })
View Source
var StringToDecimal = unmarshallerToText(func() encoding.TextUnmarshaler {
return &inf.Dec{}
})
View Source
var StringToTime fromJsonFn = unmarshallerToText(func() encoding.TextUnmarshaler { return &time.Time{} })
Functions ¶
func Base64StringToByteArray ¶
func Base64StringToByteArray(value interface{}) (interface{}, error)
func ByteArrayToBase64String ¶
func ByteArrayToBase64String(value interface{}) interface{}
func CqlFormattedStringToDuration ¶
func CqlFormattedStringToDuration(value interface{}) (interface{}, error)
func DurationToCqlFormattedString ¶
func DurationToCqlFormattedString(value interface{}) interface{}
func Float64ToFloat32 ¶
func Float64ToFloat32(value interface{}) (interface{}, error)
func FloatToInt ¶
func FloatToInt(value interface{}) (interface{}, error)
func FromJsonValue ¶
func StringerToString ¶
func StringerToString(value interface{}) interface{}
func TimeAsString ¶
func TimeAsString(value interface{}) interface{}
func ToJsonValues ¶
func ToJsonValues(rows []map[string]interface{}, table *gocql.TableMetadata) []map[string]interface{}
Types ¶
type ConditionItem ¶
type ModificationResult ¶
type MutationOptions ¶
type QueryOptions ¶
type QueryResult ¶
Click to show internal directories.
Click to hide internal directories.