Documentation
¶
Index ¶
Constants ¶
View Source
const BeginningOfTime typedefs.Timestamp = typedefs.Timestamp(0)
Timestamp at which time began.
View Source
const Hex16 int16 = 4660
View Source
const Hex32 int32 = 305419896
View Source
const Hex64 int64 = 1311768467294899695
View Source
const Home enums.RecordType = enums.RecordTypeHomeAddress
View Source
const Int16 int16 = 12345
View Source
const Int32 int32 = 1234567890
View Source
const Int64 int64 = 1234567890123456789
View Source
const Lower enums.LowerCaseEnum = enums.LowerCaseEnumItems
View Source
const MyEnum typedefs.MyEnum = typedefs.MyEnum(enums.EnumWithValuesY)
View Source
const Name enums.RecordType = enums.RecordTypeName
View Source
const WorkAddress enums.RecordType = enums.RecordTypeWorkAddress
Variables ¶
View Source
var ArbitraryValue *unions.ArbitraryValue = &unions.ArbitraryValue{ ListValue: []*unions.ArbitraryValue{ &unions.ArbitraryValue{ BoolValue: ptr.Bool(true), }, &unions.ArbitraryValue{ Int64Value: ptr.Int64(2), }, &unions.ArbitraryValue{ StringValue: ptr.String("hello"), }, &unions.ArbitraryValue{ MapValue: map[string]*unions.ArbitraryValue{ "foo": &unions.ArbitraryValue{ StringValue: ptr.String("bar"), }, }, }, }, }
View Source
var ContainersOfContainers *containers.ContainersOfContainers = &containers.ContainersOfContainers{ ListOfLists: [][]int32{ []int32{ 1, 2, 3, }, []int32{ 4, 5, 6, }, }, ListOfMaps: []map[int32]int32{ map[int32]int32{ 1: 2, 3: 4, 5: 6, }, map[int32]int32{ 7: 8, 9: 10, 11: 12, }, }, ListOfSets: []map[int32]struct{}{ map[int32]struct{}{ 1: struct{}{}, 2: struct{}{}, 3: struct{}{}, }, map[int32]struct{}{ 4: struct{}{}, 5: struct{}{}, 6: struct{}{}, }, }, MapOfListToSet: []struct { Key []int32 Value map[int64]struct{} }{ { Key: []int32{ 1, 2, 3, }, Value: map[int64]struct{}{ 1: struct{}{}, 2: struct{}{}, 3: struct{}{}, }, }, { Key: []int32{ 4, 5, 6, }, Value: map[int64]struct{}{ 4: struct{}{}, 5: struct{}{}, 6: struct{}{}, }, }, }, MapOfMapToInt: []struct { Key map[string]int32 Value int64 }{ { Key: map[string]int32{ "1": 1, "2": 2, "3": 3, }, Value: 100, }, { Key: map[string]int32{ "4": 4, "5": 5, "6": 6, }, Value: 200, }, }, MapOfSetToListOfDouble: []struct { Key map[int32]struct{} Value []float64 }{ { Key: map[int32]struct{}{ 1: struct{}{}, 2: struct{}{}, 3: struct{}{}, }, Value: []float64{ 1.2, 3.4, }, }, { Key: map[int32]struct{}{ 4: struct{}{}, 5: struct{}{}, 6: struct{}{}, }, Value: []float64{ 5.6, 7.8, }, }, }, SetOfLists: [][]string{ []string{ "1", "2", "3", }, []string{ "4", "5", "6", }, }, SetOfMaps: []map[string]string{ map[string]string{ "1": "2", "3": "4", "5": "6", }, map[string]string{ "7": "8", "9": "10", "11": "12", }, }, SetOfSets: []map[string]struct{}{ map[string]struct{}{ "1": struct{}{}, "2": struct{}{}, "3": struct{}{}, }, map[string]struct{}{ "4": struct{}{}, "5": struct{}{}, "6": struct{}{}, }, }, }
View Source
var EmptyException *exceptions.EmptyException = &exceptions.EmptyException{}
View Source
var EnumContainers *containers.EnumContainers = &containers.EnumContainers{ ListOfEnums: []enums.EnumDefault{ enums.EnumDefaultBar, enums.EnumDefaultFoo, }, MapOfEnums: map[enums.EnumWithDuplicateValues]int32{ enums.EnumWithDuplicateValuesP: 1, enums.EnumWithDuplicateValuesQ: 2, }, SetOfEnums: map[enums.EnumWithValues]struct{}{ enums.EnumWithValuesX: struct{}{}, enums.EnumWithValuesY: struct{}{}, }, }
View Source
var FrameGroup typedefs.FrameGroup = typedefs.FrameGroup{ &structs.Frame{ Size: &structs.Size{ Height: 200, Width: 100, }, TopLeft: &structs.Point{ X: 1, Y: 2, }, }, &structs.Frame{ Size: &structs.Size{ Height: 400, Width: 300, }, TopLeft: &structs.Point{ X: 3, Y: 4, }, }, }
An example frame group.
Contains two frames.
View Source
var Graph *structs.Graph = &structs.Graph{ Edges: []*structs.Edge{ &structs.Edge{ EndPoint: &structs.Point{ X: 3, Y: 4, }, StartPoint: &structs.Point{ X: 1, Y: 2, }, }, &structs.Edge{ EndPoint: &structs.Point{ X: 7, Y: 8, }, StartPoint: &structs.Point{ X: 5, Y: 6, }, }, }, }
View Source
var I128 *typedefs.I128 = &typedefs.I128{
High: 1234,
Low: 5678,
}
View Source
var LastNode *structs.Node = &structs.Node{
Value: 3,
}
View Source
var Node *structs.Node = &structs.Node{ Tail: &structs.List{ Tail: &structs.List{ Value: 3, }, Value: 2, }, Value: 1, }
View Source
var PrimitiveContainers *containers.PrimitiveContainers = &containers.PrimitiveContainers{ ListOfInts: []int64{ 1, 2, 3, }, MapOfIntToString: map[int32]string{ 1: "1", 2: "2", 3: "3", }, MapOfStringToBool: map[string]bool{ "1": false, "2": true, "3": true, }, SetOfBytes: map[int8]struct{}{ 1: struct{}{}, 2: struct{}{}, 3: struct{}{}, }, SetOfStrings: map[string]struct{}{ "foo": struct{}{}, "bar": struct{}{}, }, }
View Source
var StructWithOptionalEnum *enums.StructWithOptionalEnum = &enums.StructWithOptionalEnum{ E: _EnumDefault_ptr(enums.EnumDefaultBaz), }
View Source
var ThriftModule = &thriftreflect.ThriftModule{ Name: "constants", Package: "go.uber.org/thriftrw/gen/internal/tests/constants", FilePath: "constants.thrift", SHA1: "9dcab618ffb2d35b6baacfaa01c23461e63dbf06", Includes: []*thriftreflect.ThriftModule{ containers.ThriftModule, enums.ThriftModule, exceptions.ThriftModule, other_constants.ThriftModule, structs.ThriftModule, typedefs.ThriftModule, unions.ThriftModule, }, Raw: rawIDL, }
ThriftModule represents the IDL file used to generate this package.
View Source
var UUID *typedefs.UUID = &typedefs.UUID{
High: 1234,
Low: 5678,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.