Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BoolType = reflect.TypeOf(bool(true)) ByteType = reflect.TypeOf(int8(0)) I16Type = reflect.TypeOf(int16(0)) I32Type = reflect.TypeOf(int32(0)) I64Type = reflect.TypeOf(int64(0)) DoubleType = reflect.TypeOf(float64(0)) StringType = reflect.TypeOf(string("str")) BinaryType = reflect.TypeOf([]byte{0}) EnumType = reflect.TypeOf(Enum(0)) )
View Source
var PointerMap = map[Requiredness]map[reflect.Kind]bool{ Default: { reflect.Struct: true, }, Required: { reflect.Struct: true, }, Optional: { reflect.Bool: true, reflect.Int8: true, reflect.Int16: true, reflect.Int32: true, reflect.Int64: true, reflect.Float64: true, reflect.String: true, reflect.Struct: true, }, }
View Source
var RequirednessString = [...]string{ Default: "default", Required: "required", Optional: "optional", }
Functions ¶
func BuildStructField ¶
func BuildStructField(id int16, requiredness Requiredness, ts *TypeSpec) (ret reflect.StructField)
Types ¶
type Type ¶
func (*Type) Assignable ¶
type TypeConstructor ¶
type TypeConstructor struct {
// contains filtered or unexported fields
}
type TypeSpec ¶
func BuildTypeSpec ¶
func BuildTypeSpec(t thrift.TType, requiredness Requiredness, keySpec, valSpec *TypeSpec) *TypeSpec
Click to show internal directories.
Click to hide internal directories.