module

package
v0.0.0-...-7428086 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 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 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 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 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 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 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,
}

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 MyEnum1

type MyEnum1 int64
const (
	MyEnum1_ME1_1 MyEnum1 = 1
	MyEnum1_ME1_2 MyEnum1 = 2
	MyEnum1_ME1_3 MyEnum1 = 3
	MyEnum1_ME1_5 MyEnum1 = 5
	MyEnum1_ME1_6 MyEnum1 = 6
	MyEnum1_ME1_0 MyEnum1 = 0
)

func MyEnum1FromString

func MyEnum1FromString(s string) (MyEnum1, error)

func MyEnum1Ptr

func MyEnum1Ptr(v MyEnum1) *MyEnum1

func (MyEnum1) String

func (p MyEnum1) String() string

type MyEnum2

type MyEnum2 int64
const (
	MyEnum2_ME2_0 MyEnum2 = 0
	MyEnum2_ME2_1 MyEnum2 = 1
	MyEnum2_ME2_2 MyEnum2 = 2
)

func MyEnum2FromString

func MyEnum2FromString(s string) (MyEnum2, error)

func MyEnum2Ptr

func MyEnum2Ptr(v MyEnum2) *MyEnum2

func (MyEnum2) String

func (p MyEnum2) String() string

type MyEnum3

type MyEnum3 int64
const (
	MyEnum3_ME3_0  MyEnum3 = 0
	MyEnum3_ME3_1  MyEnum3 = 1
	MyEnum3_ME3_N2 MyEnum3 = -2
	MyEnum3_ME3_N1 MyEnum3 = -1
	MyEnum3_ME3_9  MyEnum3 = 9
	MyEnum3_ME3_10 MyEnum3 = 10
)

func MyEnum3FromString

func MyEnum3FromString(s string) (MyEnum3, error)

func MyEnum3Ptr

func MyEnum3Ptr(v MyEnum3) *MyEnum3

func (MyEnum3) String

func (p MyEnum3) String() string

type MyEnum4

type MyEnum4 int64
const (
	MyEnum4_ME4_A       MyEnum4 = 2147483645
	MyEnum4_ME4_B       MyEnum4 = 2147483646
	MyEnum4_ME4_C       MyEnum4 = 2147483647
	MyEnum4_ME4_D       MyEnum4 = -2147483648
	MyEnum4_Unspecified MyEnum4 = 0
)

func MyEnum4FromString

func MyEnum4FromString(s string) (MyEnum4, error)

func MyEnum4Ptr

func MyEnum4Ptr(v MyEnum4) *MyEnum4

func (MyEnum4) String

func (p MyEnum4) 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

func (*MyStruct) GetMe1T1

func (p *MyStruct) GetMe1T1() MyEnum1

func (*MyStruct) GetMe1T2

func (p *MyStruct) GetMe1T2() MyEnum1

func (*MyStruct) GetMe2_3

func (p *MyStruct) GetMe2_3() MyEnum2

func (*MyStruct) GetMe3N3

func (p *MyStruct) GetMe3N3() MyEnum3

func (*MyStruct) Read

func (p *MyStruct) Read(iprot thrift.Protocol) error

func (*MyStruct) ReadField1

func (p *MyStruct) ReadField1(iprot thrift.Protocol) error

func (*MyStruct) ReadField2

func (p *MyStruct) ReadField2(iprot thrift.Protocol) error

func (*MyStruct) ReadField4

func (p *MyStruct) ReadField4(iprot thrift.Protocol) error

func (*MyStruct) ReadField6

func (p *MyStruct) ReadField6(iprot thrift.Protocol) error

func (*MyStruct) SetMe1T1

func (m *MyStruct) SetMe1T1(me1T1 MyEnum1) *MyStruct

func (*MyStruct) SetMe1T2

func (m *MyStruct) SetMe1T2(me1T2 MyEnum1) *MyStruct

func (*MyStruct) SetMe2_3

func (m *MyStruct) SetMe2_3(me2_3 MyEnum2) *MyStruct

func (*MyStruct) SetMe3N3

func (m *MyStruct) SetMe3N3(me3N3 MyEnum3) *MyStruct

func (*MyStruct) String

func (p *MyStruct) String() string

func (*MyStruct) Write

func (p *MyStruct) Write(oprot thrift.Protocol) error

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) Read

func (p *SomeStruct) Read(iprot thrift.Protocol) error

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

func (*SomeStruct) Write

func (p *SomeStruct) Write(oprot thrift.Protocol) error

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL