Documentation ¶
Index ¶
- Variables
- type Metasyntactic
- type MyBitmaskEnum1
- type MyBitmaskEnum2
- type MyEnum1
- type MyEnum2
- type MyEnum3
- type MyEnum4
- type MyStruct
- func (p *MyStruct) GetMe1T1() MyEnum1
- func (p *MyStruct) GetMe1T2() MyEnum1
- func (p *MyStruct) GetMe2_3() MyEnum2
- func (p *MyStruct) GetMe3N3() MyEnum3
- func (p *MyStruct) Read(iprot thrift.Protocol) error
- func (p *MyStruct) ReadField1(iprot thrift.Protocol) error
- func (p *MyStruct) ReadField2(iprot thrift.Protocol) error
- func (p *MyStruct) ReadField4(iprot thrift.Protocol) error
- func (p *MyStruct) ReadField6(iprot thrift.Protocol) error
- func (m *MyStruct) SetMe1T1(me1T1 MyEnum1) *MyStruct
- func (m *MyStruct) SetMe1T2(me1T2 MyEnum1) *MyStruct
- func (m *MyStruct) SetMe2_3(me2_3 MyEnum2) *MyStruct
- func (m *MyStruct) SetMe3N3(me3N3 MyEnum3) *MyStruct
- func (p *MyStruct) String() string
- func (p *MyStruct) Write(oprot thrift.Protocol) error
- type MyStructBuilder
- type SomeStruct
- func (p *SomeStruct) GetFine() Metasyntactic
- func (p *SomeStruct) GetQuestionable() Metasyntactic
- func (p *SomeStruct) GetReasonable() Metasyntactic
- func (p *SomeStruct) GetTags() []int32
- func (p *SomeStruct) Read(iprot thrift.Protocol) error
- func (p *SomeStruct) ReadField1(iprot thrift.Protocol) error
- func (p *SomeStruct) ReadField2(iprot thrift.Protocol) error
- func (p *SomeStruct) ReadField3(iprot thrift.Protocol) error
- func (p *SomeStruct) ReadField4(iprot thrift.Protocol) error
- func (s *SomeStruct) SetFine(fine Metasyntactic) *SomeStruct
- func (s *SomeStruct) SetQuestionable(questionable Metasyntactic) *SomeStruct
- func (s *SomeStruct) SetReasonable(reasonable Metasyntactic) *SomeStruct
- func (s *SomeStruct) SetTags(tags []int32) *SomeStruct
- func (p *SomeStruct) String() string
- func (p *SomeStruct) Write(oprot thrift.Protocol) error
- type SomeStructBuilder
- func (p SomeStructBuilder) Emit() *SomeStruct
- func (s *SomeStructBuilder) Fine(fine Metasyntactic) *SomeStructBuilder
- func (s *SomeStructBuilder) Questionable(questionable Metasyntactic) *SomeStructBuilder
- func (s *SomeStructBuilder) Reasonable(reasonable Metasyntactic) *SomeStructBuilder
- func (s *SomeStructBuilder) Tags(tags []int32) *SomeStructBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var MetasyntacticNames = []string{
"FOO",
"BAR",
"BAZ",
"BAX",
"Unspecified",
}
View Source
var MetasyntacticToName = map[Metasyntactic]string{ Metasyntactic_FOO: "FOO", Metasyntactic_BAR: "BAR", Metasyntactic_BAZ: "BAZ", Metasyntactic_BAX: "BAX", Metasyntactic_Unspecified: "Unspecified", }
View Source
var MetasyntacticToValue = map[string]Metasyntactic{ "FOO": Metasyntactic_FOO, "BAR": Metasyntactic_BAR, "BAZ": Metasyntactic_BAZ, "BAX": Metasyntactic_BAX, "Unspecified": Metasyntactic_Unspecified, }
View Source
var MetasyntacticValues = []Metasyntactic{ Metasyntactic_FOO, Metasyntactic_BAR, Metasyntactic_BAZ, Metasyntactic_BAX, Metasyntactic_Unspecified, }
View Source
var MyBitmaskEnum1Names = []string{
"ONE",
"TWO",
"FOUR",
"Unspecified",
}
View Source
var MyBitmaskEnum1ToName = map[MyBitmaskEnum1]string{ MyBitmaskEnum1_ONE: "ONE", MyBitmaskEnum1_TWO: "TWO", MyBitmaskEnum1_FOUR: "FOUR", MyBitmaskEnum1_Unspecified: "Unspecified", }
View Source
var MyBitmaskEnum1ToValue = map[string]MyBitmaskEnum1{ "ONE": MyBitmaskEnum1_ONE, "TWO": MyBitmaskEnum1_TWO, "FOUR": MyBitmaskEnum1_FOUR, "Unspecified": MyBitmaskEnum1_Unspecified, }
View Source
var MyBitmaskEnum1Values = []MyBitmaskEnum1{ MyBitmaskEnum1_ONE, MyBitmaskEnum1_TWO, MyBitmaskEnum1_FOUR, MyBitmaskEnum1_Unspecified, }
View Source
var MyBitmaskEnum2Names = []string{
"ONE",
"TWO",
"FOUR",
"Unspecified",
}
View Source
var MyBitmaskEnum2ToName = map[MyBitmaskEnum2]string{ MyBitmaskEnum2_ONE: "ONE", MyBitmaskEnum2_TWO: "TWO", MyBitmaskEnum2_FOUR: "FOUR", MyBitmaskEnum2_Unspecified: "Unspecified", }
View Source
var MyBitmaskEnum2ToValue = map[string]MyBitmaskEnum2{ "ONE": MyBitmaskEnum2_ONE, "TWO": MyBitmaskEnum2_TWO, "FOUR": MyBitmaskEnum2_FOUR, "Unspecified": MyBitmaskEnum2_Unspecified, }
View Source
var MyBitmaskEnum2Values = []MyBitmaskEnum2{ MyBitmaskEnum2_ONE, MyBitmaskEnum2_TWO, MyBitmaskEnum2_FOUR, MyBitmaskEnum2_Unspecified, }
View Source
var MyEnum1Names = []string{
"ME1_1",
"ME1_2",
"ME1_3",
"ME1_5",
"ME1_6",
"ME1_0",
}
View Source
var MyEnum1ToName = map[MyEnum1]string{ MyEnum1_ME1_1: "ME1_1", MyEnum1_ME1_2: "ME1_2", MyEnum1_ME1_3: "ME1_3", MyEnum1_ME1_5: "ME1_5", MyEnum1_ME1_6: "ME1_6", MyEnum1_ME1_0: "ME1_0", }
View Source
var MyEnum1ToValue = map[string]MyEnum1{ "ME1_1": MyEnum1_ME1_1, "ME1_2": MyEnum1_ME1_2, "ME1_3": MyEnum1_ME1_3, "ME1_5": MyEnum1_ME1_5, "ME1_6": MyEnum1_ME1_6, "ME1_0": MyEnum1_ME1_0, }
View Source
var MyEnum1Values = []MyEnum1{ MyEnum1_ME1_1, MyEnum1_ME1_2, MyEnum1_ME1_3, MyEnum1_ME1_5, MyEnum1_ME1_6, MyEnum1_ME1_0, }
View Source
var MyEnum2Names = []string{
"ME2_0",
"ME2_1",
"ME2_2",
}
View Source
var MyEnum2ToName = map[MyEnum2]string{ MyEnum2_ME2_0: "ME2_0", MyEnum2_ME2_1: "ME2_1", MyEnum2_ME2_2: "ME2_2", }
View Source
var MyEnum2ToValue = map[string]MyEnum2{ "ME2_0": MyEnum2_ME2_0, "ME2_1": MyEnum2_ME2_1, "ME2_2": MyEnum2_ME2_2, }
View Source
var MyEnum2Values = []MyEnum2{ MyEnum2_ME2_0, MyEnum2_ME2_1, MyEnum2_ME2_2, }
View Source
var MyEnum3Names = []string{
"ME3_0",
"ME3_1",
"ME3_N2",
"ME3_N1",
"ME3_9",
"ME3_10",
}
View Source
var MyEnum3ToName = map[MyEnum3]string{ MyEnum3_ME3_0: "ME3_0", MyEnum3_ME3_1: "ME3_1", MyEnum3_ME3_N2: "ME3_N2", MyEnum3_ME3_N1: "ME3_N1", MyEnum3_ME3_9: "ME3_9", MyEnum3_ME3_10: "ME3_10", }
View Source
var MyEnum3ToValue = map[string]MyEnum3{ "ME3_0": MyEnum3_ME3_0, "ME3_1": MyEnum3_ME3_1, "ME3_N2": MyEnum3_ME3_N2, "ME3_N1": MyEnum3_ME3_N1, "ME3_9": MyEnum3_ME3_9, "ME3_10": MyEnum3_ME3_10, }
View Source
var MyEnum3Values = []MyEnum3{ MyEnum3_ME3_0, MyEnum3_ME3_1, MyEnum3_ME3_N2, MyEnum3_ME3_N1, MyEnum3_ME3_9, MyEnum3_ME3_10, }
View Source
var MyEnum4Names = []string{
"ME4_A",
"ME4_B",
"ME4_C",
"ME4_D",
"Unspecified",
}
View Source
var MyEnum4ToName = map[MyEnum4]string{ MyEnum4_ME4_A: "ME4_A", MyEnum4_ME4_B: "ME4_B", MyEnum4_ME4_C: "ME4_C", MyEnum4_ME4_D: "ME4_D", MyEnum4_Unspecified: "Unspecified", }
View Source
var MyEnum4ToValue = map[string]MyEnum4{ "ME4_A": MyEnum4_ME4_A, "ME4_B": MyEnum4_ME4_B, "ME4_C": MyEnum4_ME4_C, "ME4_D": MyEnum4_ME4_D, "Unspecified": MyEnum4_Unspecified, }
View Source
var MyEnum4Values = []MyEnum4{ MyEnum4_ME4_A, MyEnum4_ME4_B, MyEnum4_ME4_C, MyEnum4_ME4_D, MyEnum4_Unspecified, }
Functions ¶
This section is empty.
Types ¶
type Metasyntactic ¶
type Metasyntactic int64
const ( Metasyntactic_FOO Metasyntactic = 1 Metasyntactic_BAR Metasyntactic = 2 Metasyntactic_BAZ Metasyntactic = 3 Metasyntactic_BAX Metasyntactic = 4 Metasyntactic_Unspecified Metasyntactic = 0 )
func MetasyntacticFromString ¶
func MetasyntacticFromString(s string) (Metasyntactic, error)
func MetasyntacticPtr ¶
func MetasyntacticPtr(v Metasyntactic) *Metasyntactic
func (Metasyntactic) String ¶
func (p Metasyntactic) String() string
type MyBitmaskEnum1 ¶
type MyBitmaskEnum1 int64
const ( MyBitmaskEnum1_ONE MyBitmaskEnum1 = 1 MyBitmaskEnum1_TWO MyBitmaskEnum1 = 2 MyBitmaskEnum1_FOUR MyBitmaskEnum1 = 4 MyBitmaskEnum1_Unspecified MyBitmaskEnum1 = 0 )
func MyBitmaskEnum1FromString ¶
func MyBitmaskEnum1FromString(s string) (MyBitmaskEnum1, error)
func MyBitmaskEnum1Ptr ¶
func MyBitmaskEnum1Ptr(v MyBitmaskEnum1) *MyBitmaskEnum1
func (MyBitmaskEnum1) String ¶
func (p MyBitmaskEnum1) String() string
type MyBitmaskEnum2 ¶
type MyBitmaskEnum2 int64
const ( MyBitmaskEnum2_ONE MyBitmaskEnum2 = 1 MyBitmaskEnum2_TWO MyBitmaskEnum2 = 2 MyBitmaskEnum2_FOUR MyBitmaskEnum2 = 4 MyBitmaskEnum2_Unspecified MyBitmaskEnum2 = 0 )
func MyBitmaskEnum2FromString ¶
func MyBitmaskEnum2FromString(s string) (MyBitmaskEnum2, error)
func MyBitmaskEnum2Ptr ¶
func MyBitmaskEnum2Ptr(v MyBitmaskEnum2) *MyBitmaskEnum2
func (MyBitmaskEnum2) String ¶
func (p MyBitmaskEnum2) String() string
type MyStruct ¶
type MyStruct struct { Me2_3 MyEnum2 `thrift:"me2_3,1" db:"me2_3" json:"me2_3"` Me3N3 MyEnum3 `thrift:"me3_n3,2" db:"me3_n3" json:"me3_n3"` // unused field # 3 Me1T1 MyEnum1 `thrift:"me1_t1,4" db:"me1_t1" json:"me1_t1"` // unused field # 5 Me1T2 MyEnum1 `thrift:"me1_t2,6" db:"me1_t2" json:"me1_t2"` }
Attributes:
- Me2_3
- Me3N3
- Me1T1
- Me1T2
func NewMyStruct ¶
func NewMyStruct() *MyStruct
type MyStructBuilder ¶
type MyStructBuilder struct {
// contains filtered or unexported fields
}
func NewMyStructBuilder ¶
func NewMyStructBuilder() *MyStructBuilder
func (MyStructBuilder) Emit ¶
func (p MyStructBuilder) Emit() *MyStruct
func (*MyStructBuilder) Me1T1 ¶
func (m *MyStructBuilder) Me1T1(me1T1 MyEnum1) *MyStructBuilder
func (*MyStructBuilder) Me1T2 ¶
func (m *MyStructBuilder) Me1T2(me1T2 MyEnum1) *MyStructBuilder
func (*MyStructBuilder) Me2_3 ¶
func (m *MyStructBuilder) Me2_3(me2_3 MyEnum2) *MyStructBuilder
func (*MyStructBuilder) Me3N3 ¶
func (m *MyStructBuilder) Me3N3(me3N3 MyEnum3) *MyStructBuilder
type SomeStruct ¶
type SomeStruct struct { Reasonable Metasyntactic `thrift:"reasonable,1" db:"reasonable" json:"reasonable"` Fine Metasyntactic `thrift:"fine,2" db:"fine" json:"fine"` Questionable Metasyntactic `thrift:"questionable,3" db:"questionable" json:"questionable"` Tags []int32 `thrift:"tags,4" db:"tags" json:"tags"` }
Attributes:
- Reasonable
- Fine
- Questionable
- Tags
func NewSomeStruct ¶
func NewSomeStruct() *SomeStruct
func (*SomeStruct) GetFine ¶
func (p *SomeStruct) GetFine() Metasyntactic
func (*SomeStruct) GetQuestionable ¶
func (p *SomeStruct) GetQuestionable() Metasyntactic
func (*SomeStruct) GetReasonable ¶
func (p *SomeStruct) GetReasonable() Metasyntactic
func (*SomeStruct) GetTags ¶
func (p *SomeStruct) GetTags() []int32
func (*SomeStruct) ReadField1 ¶
func (p *SomeStruct) ReadField1(iprot thrift.Protocol) error
func (*SomeStruct) ReadField2 ¶
func (p *SomeStruct) ReadField2(iprot thrift.Protocol) error
func (*SomeStruct) ReadField3 ¶
func (p *SomeStruct) ReadField3(iprot thrift.Protocol) error
func (*SomeStruct) ReadField4 ¶
func (p *SomeStruct) ReadField4(iprot thrift.Protocol) error
func (*SomeStruct) SetFine ¶
func (s *SomeStruct) SetFine(fine Metasyntactic) *SomeStruct
func (*SomeStruct) SetQuestionable ¶
func (s *SomeStruct) SetQuestionable(questionable Metasyntactic) *SomeStruct
func (*SomeStruct) SetReasonable ¶
func (s *SomeStruct) SetReasonable(reasonable Metasyntactic) *SomeStruct
func (*SomeStruct) SetTags ¶
func (s *SomeStruct) SetTags(tags []int32) *SomeStruct
func (*SomeStruct) String ¶
func (p *SomeStruct) String() string
type SomeStructBuilder ¶
type SomeStructBuilder struct {
// contains filtered or unexported fields
}
func NewSomeStructBuilder ¶
func NewSomeStructBuilder() *SomeStructBuilder
func (SomeStructBuilder) Emit ¶
func (p SomeStructBuilder) Emit() *SomeStruct
func (*SomeStructBuilder) Fine ¶
func (s *SomeStructBuilder) Fine(fine Metasyntactic) *SomeStructBuilder
func (*SomeStructBuilder) Questionable ¶
func (s *SomeStructBuilder) Questionable(questionable Metasyntactic) *SomeStructBuilder
func (*SomeStructBuilder) Reasonable ¶
func (s *SomeStructBuilder) Reasonable(reasonable Metasyntactic) *SomeStructBuilder
func (*SomeStructBuilder) Tags ¶
func (s *SomeStructBuilder) Tags(tags []int32) *SomeStructBuilder
Click to show internal directories.
Click to hide internal directories.