Documentation
¶
Index ¶
- Variables
- type Animal
- type Color
- func (p *Color) GetAlpha() float64
- func (p *Color) GetBlue() float64
- func (p *Color) GetGreen() float64
- func (p *Color) GetRed() float64
- func (p *Color) Read(iprot thrift.Protocol) error
- func (p *Color) ReadField1(iprot thrift.Protocol) error
- func (p *Color) ReadField2(iprot thrift.Protocol) error
- func (p *Color) ReadField3(iprot thrift.Protocol) error
- func (p *Color) ReadField4(iprot thrift.Protocol) error
- func (c *Color) SetAlpha(alpha float64) *Color
- func (c *Color) SetBlue(blue float64) *Color
- func (c *Color) SetGreen(green float64) *Color
- func (c *Color) SetRed(red float64) *Color
- func (p *Color) String() string
- func (p *Color) Write(oprot thrift.Protocol) error
- type ColorBuilder
- type Person
- func (p *Person) DefaultGetFavoriteColor() *Color
- func (p *Person) GetAddress() string
- func (p *Person) GetAfraidOfAnimal() Animal
- func (p *Person) GetAge() int16
- func (p *Person) GetBestFriend() PersonID
- func (p *Person) GetFavoriteColor() *Color
- func (p *Person) GetFriends() []PersonID
- func (p *Person) GetId() PersonID
- func (p *Person) GetName() string
- func (p *Person) GetPetNames() map[Animal]string
- func (p *Person) GetVehicles() []*Vehicle
- func (p *Person) IsSetAddress() bool
- func (p *Person) IsSetAfraidOfAnimal() bool
- func (p *Person) IsSetAge() bool
- func (p *Person) IsSetBestFriend() bool
- func (p *Person) IsSetFavoriteColor() bool
- func (p *Person) IsSetFriends() bool
- func (p *Person) IsSetPetNames() bool
- func (p *Person) IsSetVehicles() bool
- func (p *Person) Read(iprot thrift.Protocol) error
- func (p *Person) ReadField1(iprot thrift.Protocol) error
- func (p *Person) ReadField10(iprot thrift.Protocol) error
- func (p *Person) ReadField2(iprot thrift.Protocol) error
- func (p *Person) ReadField3(iprot thrift.Protocol) error
- func (p *Person) ReadField4(iprot thrift.Protocol) error
- func (p *Person) ReadField5(iprot thrift.Protocol) error
- func (p *Person) ReadField6(iprot thrift.Protocol) error
- func (p *Person) ReadField7(iprot thrift.Protocol) error
- func (p *Person) ReadField8(iprot thrift.Protocol) error
- func (p *Person) ReadField9(iprot thrift.Protocol) error
- func (p *Person) SetAddress(address *string) *Person
- func (p *Person) SetAfraidOfAnimal(afraidOfAnimal *Animal) *Person
- func (p *Person) SetAge(age *int16) *Person
- func (p *Person) SetBestFriend(bestFriend *PersonID) *Person
- func (p *Person) SetFavoriteColor(favoriteColor *Color) *Person
- func (p *Person) SetFriends(friends []PersonID) *Person
- func (p *Person) SetId(id PersonID) *Person
- func (p *Person) SetName(name string) *Person
- func (p *Person) SetPetNames(petNames map[Animal]string) *Person
- func (p *Person) SetVehicles(vehicles []*Vehicle) *Person
- func (p *Person) String() string
- func (p *Person) Write(oprot thrift.Protocol) error
- type PersonBuilder
- func (p *PersonBuilder) Address(address *string) *PersonBuilder
- func (p *PersonBuilder) AfraidOfAnimal(afraidOfAnimal *Animal) *PersonBuilder
- func (p *PersonBuilder) Age(age *int16) *PersonBuilder
- func (p *PersonBuilder) BestFriend(bestFriend *PersonID) *PersonBuilder
- func (p PersonBuilder) Emit() *Person
- func (p *PersonBuilder) FavoriteColor(favoriteColor *Color) *PersonBuilder
- func (p *PersonBuilder) Friends(friends []PersonID) *PersonBuilder
- func (p *PersonBuilder) Id(id PersonID) *PersonBuilder
- func (p *PersonBuilder) Name(name string) *PersonBuilder
- func (p *PersonBuilder) PetNames(petNames map[Animal]string) *PersonBuilder
- func (p *PersonBuilder) Vehicles(vehicles []*Vehicle) *PersonBuilder
- type PersonID
- type Vehicle
- func (p *Vehicle) DefaultGetColor() *Color
- func (p *Vehicle) GetColor() *Color
- func (p *Vehicle) GetDescription() string
- func (p *Vehicle) GetHasAC() bool
- func (p *Vehicle) GetLicensePlate() string
- func (p *Vehicle) GetName() string
- func (p *Vehicle) IsSetColor() bool
- func (p *Vehicle) IsSetDescription() bool
- func (p *Vehicle) IsSetHasAC() bool
- func (p *Vehicle) IsSetLicensePlate() bool
- func (p *Vehicle) IsSetName() bool
- func (p *Vehicle) Read(iprot thrift.Protocol) error
- func (p *Vehicle) ReadField1(iprot thrift.Protocol) error
- func (p *Vehicle) ReadField2(iprot thrift.Protocol) error
- func (p *Vehicle) ReadField3(iprot thrift.Protocol) error
- func (p *Vehicle) ReadField4(iprot thrift.Protocol) error
- func (p *Vehicle) ReadField5(iprot thrift.Protocol) error
- func (v *Vehicle) SetColor(color *Color) *Vehicle
- func (v *Vehicle) SetDescription(description *string) *Vehicle
- func (v *Vehicle) SetHasAC(hasAC bool) *Vehicle
- func (v *Vehicle) SetLicensePlate(licensePlate *string) *Vehicle
- func (v *Vehicle) SetName(name *string) *Vehicle
- func (p *Vehicle) String() string
- func (p *Vehicle) Write(oprot thrift.Protocol) error
- type VehicleBuilder
- func (v *VehicleBuilder) Color(color *Color) *VehicleBuilder
- func (v *VehicleBuilder) Description(description *string) *VehicleBuilder
- func (p VehicleBuilder) Emit() *Vehicle
- func (v *VehicleBuilder) HasAC(hasAC bool) *VehicleBuilder
- func (v *VehicleBuilder) LicensePlate(licensePlate *string) *VehicleBuilder
- func (v *VehicleBuilder) Name(name *string) *VehicleBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var AnimalNames = []string{
"DOG",
"CAT",
"TARANTULA",
}
View Source
var AnimalToName = map[Animal]string{ Animal_DOG: "DOG", Animal_CAT: "CAT", Animal_TARANTULA: "TARANTULA", }
View Source
var AnimalToValue = map[string]Animal{ "DOG": Animal_DOG, "CAT": Animal_CAT, "TARANTULA": Animal_TARANTULA, }
View Source
var AnimalValues = []Animal{ Animal_DOG, Animal_CAT, Animal_TARANTULA, }
View Source
var GoUnusedProtection__ int
View Source
var Person_Address_DEFAULT string
View Source
var Person_Age_DEFAULT int16
View Source
var Person_Friends_DEFAULT []PersonID
View Source
var Person_PetNames_DEFAULT map[Animal]string
View Source
var Person_Vehicles_DEFAULT []*Vehicle
View Source
var Vehicle_Description_DEFAULT string
View Source
var Vehicle_HasAC_DEFAULT bool = false
View Source
var Vehicle_LicensePlate_DEFAULT string
View Source
var Vehicle_Name_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color struct { Red float64 `thrift:"red,1" db:"red" json:"red"` Green float64 `thrift:"green,2" db:"green" json:"green"` Blue float64 `thrift:"blue,3" db:"blue" json:"blue"` Alpha float64 `thrift:"alpha,4" db:"alpha" json:"alpha"` }
Attributes:
- Red
- Green
- Blue
- Alpha
var Person_FavoriteColor_DEFAULT *Color
var Vehicle_Color_DEFAULT *Color
type ColorBuilder ¶
type ColorBuilder struct {
// contains filtered or unexported fields
}
func NewColorBuilder ¶
func NewColorBuilder() *ColorBuilder
func (*ColorBuilder) Alpha ¶
func (c *ColorBuilder) Alpha(alpha float64) *ColorBuilder
func (*ColorBuilder) Blue ¶
func (c *ColorBuilder) Blue(blue float64) *ColorBuilder
func (ColorBuilder) Emit ¶
func (p ColorBuilder) Emit() *Color
func (*ColorBuilder) Green ¶
func (c *ColorBuilder) Green(green float64) *ColorBuilder
func (*ColorBuilder) Red ¶
func (c *ColorBuilder) Red(red float64) *ColorBuilder
type Person ¶
type Person struct { Id PersonID `thrift:"id,1" db:"id" json:"id"` Name string `thrift:"name,2" db:"name" json:"name"` Age *int16 `thrift:"age,3,optional" db:"age" json:"age,omitempty"` Address *string `thrift:"address,4,optional" db:"address" json:"address,omitempty"` FavoriteColor *Color `thrift:"favoriteColor,5,optional" db:"favoriteColor" json:"favoriteColor,omitempty"` Friends []PersonID `thrift:"friends,6,optional" db:"friends" json:"friends,omitempty"` BestFriend *PersonID `thrift:"bestFriend,7,optional" db:"bestFriend" json:"bestFriend,omitempty"` PetNames map[Animal]string `thrift:"petNames,8,optional" db:"petNames" json:"petNames,omitempty"` AfraidOfAnimal *Animal `thrift:"afraidOfAnimal,9,optional" db:"afraidOfAnimal" json:"afraidOfAnimal,omitempty"` Vehicles []*Vehicle `thrift:"vehicles,10,optional" db:"vehicles" json:"vehicles,omitempty"` }
Attributes:
- Id
- Name
- Age
- Address
- FavoriteColor
- Friends
- BestFriend
- PetNames
- AfraidOfAnimal
- Vehicles
func (*Person) DefaultGetFavoriteColor ¶
func (*Person) GetAddress ¶
func (*Person) GetAfraidOfAnimal ¶
func (*Person) GetBestFriend ¶
func (*Person) GetFavoriteColor ¶
func (*Person) GetFriends ¶
func (*Person) GetPetNames ¶
func (*Person) GetVehicles ¶
func (*Person) IsSetAddress ¶
func (*Person) IsSetAfraidOfAnimal ¶
func (*Person) IsSetBestFriend ¶
func (*Person) IsSetFavoriteColor ¶
func (*Person) IsSetFriends ¶
func (*Person) IsSetPetNames ¶
func (*Person) IsSetVehicles ¶
func (*Person) SetAddress ¶
func (*Person) SetAfraidOfAnimal ¶
func (*Person) SetBestFriend ¶
func (*Person) SetFavoriteColor ¶
func (*Person) SetFriends ¶
func (*Person) SetVehicles ¶
type PersonBuilder ¶
type PersonBuilder struct {
// contains filtered or unexported fields
}
func NewPersonBuilder ¶
func NewPersonBuilder() *PersonBuilder
func (*PersonBuilder) Address ¶
func (p *PersonBuilder) Address(address *string) *PersonBuilder
func (*PersonBuilder) AfraidOfAnimal ¶
func (p *PersonBuilder) AfraidOfAnimal(afraidOfAnimal *Animal) *PersonBuilder
func (*PersonBuilder) Age ¶
func (p *PersonBuilder) Age(age *int16) *PersonBuilder
func (*PersonBuilder) BestFriend ¶
func (p *PersonBuilder) BestFriend(bestFriend *PersonID) *PersonBuilder
func (PersonBuilder) Emit ¶
func (p PersonBuilder) Emit() *Person
func (*PersonBuilder) FavoriteColor ¶
func (p *PersonBuilder) FavoriteColor(favoriteColor *Color) *PersonBuilder
func (*PersonBuilder) Friends ¶
func (p *PersonBuilder) Friends(friends []PersonID) *PersonBuilder
func (*PersonBuilder) Id ¶
func (p *PersonBuilder) Id(id PersonID) *PersonBuilder
func (*PersonBuilder) Name ¶
func (p *PersonBuilder) Name(name string) *PersonBuilder
func (*PersonBuilder) PetNames ¶
func (p *PersonBuilder) PetNames(petNames map[Animal]string) *PersonBuilder
func (*PersonBuilder) Vehicles ¶
func (p *PersonBuilder) Vehicles(vehicles []*Vehicle) *PersonBuilder
type Vehicle ¶
type Vehicle struct { Color *Color `thrift:"color,1" db:"color" json:"color"` LicensePlate *string `thrift:"licensePlate,2,optional" db:"licensePlate" json:"licensePlate,omitempty"` Description *string `thrift:"description,3,optional" db:"description" json:"description,omitempty"` Name *string `thrift:"name,4,optional" db:"name" json:"name,omitempty"` HasAC bool `thrift:"hasAC,5,optional" db:"hasAC" json:"hasAC,omitempty"` }
Attributes:
- Color
- LicensePlate
- Description
- Name
- HasAC
func NewVehicle ¶
func NewVehicle() *Vehicle
func (*Vehicle) DefaultGetColor ¶
func (*Vehicle) GetDescription ¶
func (*Vehicle) GetLicensePlate ¶
func (*Vehicle) IsSetColor ¶
func (*Vehicle) IsSetDescription ¶
func (*Vehicle) IsSetHasAC ¶
func (*Vehicle) IsSetLicensePlate ¶
func (*Vehicle) SetDescription ¶
func (*Vehicle) SetLicensePlate ¶
type VehicleBuilder ¶
type VehicleBuilder struct {
// contains filtered or unexported fields
}
func NewVehicleBuilder ¶
func NewVehicleBuilder() *VehicleBuilder
func (*VehicleBuilder) Color ¶
func (v *VehicleBuilder) Color(color *Color) *VehicleBuilder
func (*VehicleBuilder) Description ¶
func (v *VehicleBuilder) Description(description *string) *VehicleBuilder
func (VehicleBuilder) Emit ¶
func (p VehicleBuilder) Emit() *Vehicle
func (*VehicleBuilder) HasAC ¶
func (v *VehicleBuilder) HasAC(hasAC bool) *VehicleBuilder
func (*VehicleBuilder) LicensePlate ¶
func (v *VehicleBuilder) LicensePlate(licensePlate *string) *VehicleBuilder
func (*VehicleBuilder) Name ¶
func (v *VehicleBuilder) Name(name *string) *VehicleBuilder
Click to show internal directories.
Click to hide internal directories.