Documentation
¶
Index ¶
- Constants
- Variables
- type City
- func CityFromString(s string) (City, error)deprecated
- func CityPtr(v City) *Citydeprecated
- type Company
- func CompanyFromString(s string) (Company, error)deprecated
- func CompanyPtr(v Company) *Companydeprecated
- type EmptyEnum
- type Internship
- func (x *Internship) GetCompensation() *float64
- func (x *Internship) GetEmployer() *Company
- func (x *Internship) GetSchool() *string
- func (x *Internship) GetTitle() string
- func (x *Internship) GetWeeks() int32
- func (x *Internship) IsSetCompensation() bool
- func (x *Internship) IsSetEmployer() bool
- func (x *Internship) IsSetSchool() bool
- func (x *Internship) Read(p thrift.Protocol) error
- func (x *Internship) SetCompensation(value float64) *Internship
- func (x *Internship) SetEmployer(value Company) *Internship
- func (x *Internship) SetSchool(value string) *Internship
- func (x *Internship) SetTitle(value string) *Internship
- func (x *Internship) SetWeeks(value int32) *Internship
- func (x *Internship) Write(p thrift.Protocol) error
- type InternshipBuilderdeprecated
- func (x *InternshipBuilder) Compensation(value *float64) *InternshipBuilder
- func (x *InternshipBuilder) Emit() *Internship
- func (x *InternshipBuilder) Employer(value *Company) *InternshipBuilder
- func (x *InternshipBuilder) School(value *string) *InternshipBuilder
- func (x *InternshipBuilder) Title(value string) *InternshipBuilder
- func (x *InternshipBuilder) Weeks(value int32) *InternshipBuilder
- type MyCompany
- type MyIntIdentifier
- type MyMapIdentifier
- type MyStringIdentifier
- type Range
- type RangeBuilderdeprecated
- type Struct1
- type Struct1Builderdeprecated
- type Struct2
- func (x *Struct2) GetA() int32
- func (x *Struct2) GetB() string
- func (x *Struct2) GetC() *Struct1
- func (x *Struct2) GetD() []int32
- func (x *Struct2) IsSetC() bool
- func (x *Struct2) IsSetD() bool
- func (x *Struct2) Read(p thrift.Protocol) error
- func (x *Struct2) SetA(value int32) *Struct2
- func (x *Struct2) SetB(value string) *Struct2
- func (x *Struct2) SetC(value Struct1) *Struct2
- func (x *Struct2) SetD(value []int32) *Struct2
- func (x *Struct2) Write(p thrift.Protocol) error
- type Struct2Builderdeprecated
- type Struct3
- func (x *Struct3) GetA() string
- func (x *Struct3) GetB() int32
- func (x *Struct3) GetC() *Struct2
- func (x *Struct3) IsSetC() bool
- func (x *Struct3) Read(p thrift.Protocol) error
- func (x *Struct3) SetA(value string) *Struct3
- func (x *Struct3) SetB(value int32) *Struct3
- func (x *Struct3) SetC(value Struct2) *Struct3
- func (x *Struct3) Write(p thrift.Protocol) error
- type Struct3Builderdeprecated
- type Struct4
- func (x *Struct4) GetA() int32
- func (x *Struct4) GetB() *float64
- func (x *Struct4) GetC() *byte
- func (x *Struct4) IsSetB() bool
- func (x *Struct4) IsSetC() bool
- func (x *Struct4) Read(p thrift.Protocol) error
- func (x *Struct4) SetA(value int32) *Struct4
- func (x *Struct4) SetB(value float64) *Struct4
- func (x *Struct4) SetC(value byte) *Struct4
- func (x *Struct4) Write(p thrift.Protocol) error
- type Struct4Builderdeprecated
- type Union1
- func (x *Union1) GetD() *float64
- func (x *Union1) GetI() *int32
- func (x *Union1) IsSetD() bool
- func (x *Union1) IsSetI() bool
- func (x *Union1) Read(p thrift.Protocol) error
- func (x *Union1) SetD(value float64) *Union1
- func (x *Union1) SetI(value int32) *Union1
- func (x *Union1) Write(p thrift.Protocol) error
- type Union2
- func (x *Union2) GetD() *float64
- func (x *Union2) GetI() *int32
- func (x *Union2) GetS() *Struct1
- func (x *Union2) GetU() *Union1
- func (x *Union2) IsSetD() bool
- func (x *Union2) IsSetI() bool
- func (x *Union2) IsSetS() bool
- func (x *Union2) IsSetU() bool
- func (x *Union2) Read(p thrift.Protocol) error
- func (x *Union2) SetD(value float64) *Union2
- func (x *Union2) SetI(value int32) *Union2
- func (x *Union2) SetS(value Struct1) *Union2
- func (x *Union2) SetU(value Union1) *Union2
- func (x *Union2) Write(p thrift.Protocol) error
Constants ¶
View Source
const Apostrophe string = "'"
View Source
const Backslash string = "\\\\"
View Source
const EmptyString string = ""
View Source
const EscapedA string = "\\x61"
View Source
const FalseC bool = false
View Source
const LongDoubleValue float64 = 2.59961000990301e-05
View Source
const MaxDub float64 = 1.7976931348623157e+308
View Source
const MaxIntBin int64 = 9223372036854775807
View Source
const MaxIntDec int64 = 9223372036854775807
View Source
const MaxIntHex int64 = 9223372036854775807
View Source
const MaxIntOct int64 = 9223372036854775807
View Source
const MaxNDub float64 = -1.7976931348623157e+308
View Source
const MaxPDub float64 = 1.7976931348623157e+308
View Source
const MaxPIntBin int64 = 9223372036854775807
View Source
const MaxPIntDec int64 = 9223372036854775807
View Source
const MaxPIntHex int64 = 9223372036854775807
View Source
const MaxPIntOct int64 = 9223372036854775807
View Source
const MinDub float64 = 2.2250738585072014e-308
View Source
const MinIntBin int64 = -9223372036854775808
View Source
const MinIntDec int64 = -9223372036854775808
View Source
const MinIntHex int64 = -9223372036854775808
View Source
const MinIntOct int64 = -9223372036854775808
View Source
const MinNDub float64 = -2.2250738585072014e-308
View Source
const MinNSDub float64 = -5e-324
View Source
const MinPDub float64 = 2.2250738585072014e-308
View Source
const MinPSDub float64 = 5e-324
View Source
const MinSDub float64 = 5e-324
View Source
const MultiLineString string = "This\nis a\nmulti line string.\n"
View Source
const MyInt int32 = 1337
View Source
const Name string = "Mark Zuckerberg"
View Source
const QuotationMark string = "\""
View Source
const TripleApostrophe string = "'''"
View Source
const TrueC bool = true
View Source
const X float64 = 1
View Source
const Y float64 = 1000000.0
View Source
const Z float64 = 1000000000
View Source
const Zero16 int16 = 0
View Source
const Zero32 int32 = 0
View Source
const Zero64 int64 = 0
View Source
const ZeroByte byte = 0
View Source
const ZeroDotZero float64 = 0
View Source
const ZeroDoubleValue float64 = 0
Variables ¶
View Source
var ( EmptyEnum_name = map[EmptyEnum]string{} EmptyEnum_value = map[string]EmptyEnum{} // Deprecated: Use EmptyEnum_name instead. EmptyEnumToName = EmptyEnum_name // Deprecated: Use EmptyEnum_value instead. EmptyEnumToValue = EmptyEnum_value // Deprecated: Use EmptyEnum_name instead (e.g. `for name, _ := range EmptyEnum_name {}`). EmptyEnumNames = []string{} // Deprecated: Use EmptyEnum_value instead (e.g. `for value, _ := range EmptyEnum_value {}`). EmptyEnumValues = []EmptyEnum{} )
Enum value maps for EmptyEnum
View Source
var ( City_name = map[City]string{ City_NYC: "NYC", City_MPK: "MPK", City_SEA: "SEA", City_LON: "LON", } City_value = map[string]City{ "NYC": City_NYC, "MPK": City_MPK, "SEA": City_SEA, "LON": City_LON, } // Deprecated: Use City_name instead. CityToName = City_name // Deprecated: Use City_value instead. CityToValue = City_value // Deprecated: Use City_name instead (e.g. `for name, _ := range City_name {}`). CityNames = []string{ "NYC", "MPK", "SEA", "LON", } // Deprecated: Use City_value instead (e.g. `for value, _ := range City_value {}`). CityValues = []City{ 0, 1, 2, 3, } )
Enum value maps for City
View Source
var ( Company_name = map[Company]string{ Company_FACEBOOK: "FACEBOOK", Company_WHATSAPP: "WHATSAPP", Company_OCULUS: "OCULUS", Company_INSTAGRAM: "INSTAGRAM", } Company_value = map[string]Company{ "FACEBOOK": Company_FACEBOOK, "WHATSAPP": Company_WHATSAPP, "OCULUS": Company_OCULUS, "INSTAGRAM": Company_INSTAGRAM, } // Deprecated: Use Company_name instead. CompanyToName = Company_name // Deprecated: Use Company_value instead. CompanyToValue = Company_value // Deprecated: Use Company_name instead (e.g. `for name, _ := range Company_name {}`). CompanyNames = []string{ "FACEBOOK", "WHATSAPP", "OCULUS", "INSTAGRAM", } // Deprecated: Use Company_value instead (e.g. `for value, _ := range Company_value {}`). CompanyValues = []Company{ 0, 1, 2, 3, } )
Enum value maps for Company
View Source
var Char2ascii map[string]int32 = map[string]int32{
"'": 39,
"\"": 34,
"\\\\": 92,
"\\x61": 97,
}
View Source
var EmptyIntIntMap map[int32]int32 = map[int32]int32{}
View Source
var EmptyIntList []int32 = []int32{}
View Source
var EmptyIntSet []int32 = []int32{}
View Source
var EmptyIntStringMap map[int32]string = map[int32]string{}
View Source
var EmptyStringIntMap map[string]int32 = map[string]int32{}
View Source
var EmptyStringList []string = []string{}
View Source
var EmptyStringSet []string = []string{}
View Source
var EmptyStringStringMap map[string]string = map[string]string{}
View Source
var EscapedStrings []string = []string{
"\\x61",
"\\xab",
"\\x6a",
"\\xa6",
"\\x61yyy",
"\\xabyyy",
"\\x6ayyy",
"\\xa6yyy",
"zzz\\x61",
"zzz\\xab",
"zzz\\x6a",
"zzz\\xa6",
"zzz\\x61yyy",
"zzz\\xabyyy",
"zzz\\x6ayyy",
"zzz\\xa6yyy",
}
View Source
var GoUnusedProtection__ int
View Source
var InternList []*Internship = []*Internship{ NewInternship(). SetWeeks(12). SetTitle("Software Engineer"). SetEmployer(Company_INSTAGRAM). SetCompensation(1200). SetSchool("Monters University"), NewInternship(). SetWeeks(10). SetTitle("Sales Intern"). SetEmployer(Company_FACEBOOK). SetCompensation(1000), }
View Source
var KRanges []*Range = []*Range{ NewRange(). SetMin(1). SetMax(2), NewRange(). SetMin(5). SetMax(6), }
Functions ¶
This section is empty.
Types ¶
type EmptyEnum ¶
type EmptyEnum int32
func EmptyEnumFromString
deprecated
func EmptyEnumPtr
deprecated
type Internship ¶
type Internship struct {
Weeks int32 `thrift:"weeks,1,required" json:"weeks" db:"weeks"`
Title string `thrift:"title,2" json:"title" db:"title"`
Employer *Company `thrift:"employer,3,optional" json:"employer,omitempty" db:"employer"`
Compensation *float64 `thrift:"compensation,4,optional" json:"compensation,omitempty" db:"compensation"`
School *string `thrift:"school,5,optional" json:"school,omitempty" db:"school"`
}
var Instagram Internship = *NewInternship(). SetWeeks(12). SetTitle("Software Engineer"). SetEmployer(Company_INSTAGRAM). SetCompensation(1200). SetSchool("Monters University")
var PartialConst Internship = *NewInternship().
SetWeeks(8).
SetTitle("Some Job")
func NewInternship ¶
func NewInternship() *Internship
func (*Internship) GetCompensation ¶
func (x *Internship) GetCompensation() *float64
func (*Internship) GetEmployer ¶
func (x *Internship) GetEmployer() *Company
func (*Internship) GetSchool ¶
func (x *Internship) GetSchool() *string
func (*Internship) GetTitle ¶
func (x *Internship) GetTitle() string
func (*Internship) GetWeeks ¶
func (x *Internship) GetWeeks() int32
func (*Internship) IsSetCompensation ¶
func (x *Internship) IsSetCompensation() bool
func (*Internship) IsSetEmployer ¶
func (x *Internship) IsSetEmployer() bool
func (*Internship) IsSetSchool ¶
func (x *Internship) IsSetSchool() bool
func (*Internship) SetCompensation ¶
func (x *Internship) SetCompensation(value float64) *Internship
func (*Internship) SetEmployer ¶
func (x *Internship) SetEmployer(value Company) *Internship
func (*Internship) SetSchool ¶
func (x *Internship) SetSchool(value string) *Internship
func (*Internship) SetTitle ¶
func (x *Internship) SetTitle(value string) *Internship
func (*Internship) SetWeeks ¶
func (x *Internship) SetWeeks(value int32) *Internship
type InternshipBuilder
deprecated
type InternshipBuilder struct {
// contains filtered or unexported fields
}
Deprecated: Use Internship.Set* methods instead or set the fields directly.
func NewInternshipBuilder ¶
func NewInternshipBuilder() *InternshipBuilder
func (*InternshipBuilder) Compensation ¶
func (x *InternshipBuilder) Compensation(value *float64) *InternshipBuilder
func (*InternshipBuilder) Emit ¶
func (x *InternshipBuilder) Emit() *Internship
func (*InternshipBuilder) Employer ¶
func (x *InternshipBuilder) Employer(value *Company) *InternshipBuilder
func (*InternshipBuilder) School ¶
func (x *InternshipBuilder) School(value *string) *InternshipBuilder
func (*InternshipBuilder) Title ¶
func (x *InternshipBuilder) Title(value string) *InternshipBuilder
func (*InternshipBuilder) Weeks ¶
func (x *InternshipBuilder) Weeks(value int32) *InternshipBuilder
type MyMapIdentifier ¶
var Mymap MyMapIdentifier = map[string]string{
"keys": "values",
}
type Range ¶
type RangeBuilder
deprecated
type RangeBuilder struct {
// contains filtered or unexported fields
}
Deprecated: Use Range.Set* methods instead or set the fields directly.
func NewRangeBuilder ¶
func NewRangeBuilder() *RangeBuilder
func (*RangeBuilder) Emit ¶
func (x *RangeBuilder) Emit() *Range
func (*RangeBuilder) Max ¶
func (x *RangeBuilder) Max(value int32) *RangeBuilder
func (*RangeBuilder) Min ¶
func (x *RangeBuilder) Min(value int32) *RangeBuilder
type Struct1 ¶
type Struct1 struct {
A int32 `thrift:"a,1" json:"a" db:"a"`
B string `thrift:"b,2" json:"b" db:"b"`
}
var Pod0 Struct1 = *NewStruct1()
var Pod1 Struct1 = *NewStruct1().
SetA(10).
SetB("foo")
var PodS0 Struct1 = *NewStruct1()
var PodS1 Struct1 = *NewStruct1().
SetA(10).
SetB("foo")
func NewStruct1 ¶
func NewStruct1() *Struct1
type Struct1Builder
deprecated
type Struct1Builder struct {
// contains filtered or unexported fields
}
Deprecated: Use Struct1.Set* methods instead or set the fields directly.
func NewStruct1Builder ¶
func NewStruct1Builder() *Struct1Builder
func (*Struct1Builder) A ¶
func (x *Struct1Builder) A(value int32) *Struct1Builder
func (*Struct1Builder) B ¶
func (x *Struct1Builder) B(value string) *Struct1Builder
func (*Struct1Builder) Emit ¶
func (x *Struct1Builder) Emit() *Struct1
type Struct2 ¶
type Struct2 struct {
A int32 `thrift:"a,1" json:"a" db:"a"`
B string `thrift:"b,2" json:"b" db:"b"`
C *Struct1 `thrift:"c,3" json:"c" db:"c"`
D []int32 `thrift:"d,4" json:"d" db:"d"`
}
var Pod2 Struct2 = *NewStruct2(). SetA(98). SetB("gaz"). SetC( *NewStruct1(). SetA(12). SetB("bar"), ). SetD( []int32{ 11, 22, 33, }, )
var PodS2 Struct2 = *NewStruct2(). SetA(98). SetB("gaz"). SetC( *NewStruct1(). SetA(12). SetB("bar"), ). SetD( []int32{ 11, 22, 33, }, )
var PodTrailingCommas Struct2 = *NewStruct2(). SetA(98). SetB("gaz"). SetC( *NewStruct1(). SetA(12). SetB("bar"), ). SetD( []int32{ 11, 22, 33, }, )
func NewStruct2 ¶
func NewStruct2() *Struct2
type Struct2Builder
deprecated
type Struct2Builder struct {
// contains filtered or unexported fields
}
Deprecated: Use Struct2.Set* methods instead or set the fields directly.
func NewStruct2Builder ¶
func NewStruct2Builder() *Struct2Builder
func (*Struct2Builder) A ¶
func (x *Struct2Builder) A(value int32) *Struct2Builder
func (*Struct2Builder) B ¶
func (x *Struct2Builder) B(value string) *Struct2Builder
func (*Struct2Builder) C ¶
func (x *Struct2Builder) C(value *Struct1) *Struct2Builder
func (*Struct2Builder) D ¶
func (x *Struct2Builder) D(value []int32) *Struct2Builder
func (*Struct2Builder) Emit ¶
func (x *Struct2Builder) Emit() *Struct2
type Struct3 ¶
type Struct3 struct {
A string `thrift:"a,1" json:"a" db:"a"`
B int32 `thrift:"b,2" json:"b" db:"b"`
C *Struct2 `thrift:"c,3" json:"c" db:"c"`
}
var Pod3 Struct3 = *NewStruct3(). SetA("abc"). SetB(456). SetC( *NewStruct2(). SetA(888). SetC( *NewStruct1(). SetB("gaz"), ). SetD( []int32{ 1, 2, 3, }, ), )
var PodS3 Struct3 = *NewStruct3(). SetA("abc"). SetB(456). SetC( *NewStruct2(). SetA(888). SetC( *NewStruct1(). SetB("gaz"), ). SetD( []int32{ 1, 2, 3, }, ), )
func NewStruct3 ¶
func NewStruct3() *Struct3
type Struct3Builder
deprecated
type Struct3Builder struct {
// contains filtered or unexported fields
}
Deprecated: Use Struct3.Set* methods instead or set the fields directly.
func NewStruct3Builder ¶
func NewStruct3Builder() *Struct3Builder
func (*Struct3Builder) A ¶
func (x *Struct3Builder) A(value string) *Struct3Builder
func (*Struct3Builder) B ¶
func (x *Struct3Builder) B(value int32) *Struct3Builder
func (*Struct3Builder) C ¶
func (x *Struct3Builder) C(value *Struct2) *Struct3Builder
func (*Struct3Builder) Emit ¶
func (x *Struct3Builder) Emit() *Struct3
type Struct4 ¶
type Struct4 struct {
A int32 `thrift:"a,1" json:"a" db:"a"`
B *float64 `thrift:"b,2,optional" json:"b,omitempty" db:"b"`
C *byte `thrift:"c,3,optional" json:"c,omitempty" db:"c"`
}
var Pod4 Struct4 = *NewStruct4().
SetA(1234).
SetB(0.333).
SetC(25)
func NewStruct4 ¶
func NewStruct4() *Struct4
type Struct4Builder
deprecated
type Struct4Builder struct {
// contains filtered or unexported fields
}
Deprecated: Use Struct4.Set* methods instead or set the fields directly.
func NewStruct4Builder ¶
func NewStruct4Builder() *Struct4Builder
func (*Struct4Builder) A ¶
func (x *Struct4Builder) A(value int32) *Struct4Builder
func (*Struct4Builder) B ¶
func (x *Struct4Builder) B(value *float64) *Struct4Builder
func (*Struct4Builder) C ¶
func (x *Struct4Builder) C(value *byte) *Struct4Builder
func (*Struct4Builder) Emit ¶
func (x *Struct4Builder) Emit() *Struct4
type Union1 ¶
Click to show internal directories.
Click to hide internal directories.