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: 5 Imported by: 0

Documentation

Index

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 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 Animal

type Animal int64
const (
	Animal_DOG       Animal = 1
	Animal_CAT       Animal = 2
	Animal_TARANTULA Animal = 3
)
var Person_AfraidOfAnimal_DEFAULT Animal

func AnimalFromString

func AnimalFromString(s string) (Animal, error)

func AnimalPtr

func AnimalPtr(v Animal) *Animal

func (Animal) String

func (p Animal) String() string

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

func NewColor

func NewColor() *Color

func (*Color) GetAlpha

func (p *Color) GetAlpha() float64

func (*Color) GetBlue

func (p *Color) GetBlue() float64

func (*Color) GetGreen

func (p *Color) GetGreen() float64

func (*Color) GetRed

func (p *Color) GetRed() float64

func (*Color) Read

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

func (*Color) ReadField1

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

func (*Color) ReadField2

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

func (*Color) ReadField3

func (p *Color) ReadField3(iprot thrift.Protocol) error

func (*Color) ReadField4

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

func (*Color) SetAlpha

func (c *Color) SetAlpha(alpha float64) *Color

func (*Color) SetBlue

func (c *Color) SetBlue(blue float64) *Color

func (*Color) SetGreen

func (c *Color) SetGreen(green float64) *Color

func (*Color) SetRed

func (c *Color) SetRed(red float64) *Color

func (*Color) String

func (p *Color) String() string

func (*Color) Write

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

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 NewPerson

func NewPerson() *Person

func (*Person) DefaultGetFavoriteColor

func (p *Person) DefaultGetFavoriteColor() *Color

func (*Person) GetAddress

func (p *Person) GetAddress() string

func (*Person) GetAfraidOfAnimal

func (p *Person) GetAfraidOfAnimal() Animal

func (*Person) GetAge

func (p *Person) GetAge() int16

func (*Person) GetBestFriend

func (p *Person) GetBestFriend() PersonID

func (*Person) GetFavoriteColor

func (p *Person) GetFavoriteColor() *Color

func (*Person) GetFriends

func (p *Person) GetFriends() []PersonID

func (*Person) GetId

func (p *Person) GetId() PersonID

func (*Person) GetName

func (p *Person) GetName() string

func (*Person) GetPetNames

func (p *Person) GetPetNames() map[Animal]string

func (*Person) GetVehicles

func (p *Person) GetVehicles() []*Vehicle

func (*Person) IsSetAddress

func (p *Person) IsSetAddress() bool

func (*Person) IsSetAfraidOfAnimal

func (p *Person) IsSetAfraidOfAnimal() bool

func (*Person) IsSetAge

func (p *Person) IsSetAge() bool

func (*Person) IsSetBestFriend

func (p *Person) IsSetBestFriend() bool

func (*Person) IsSetFavoriteColor

func (p *Person) IsSetFavoriteColor() bool

func (*Person) IsSetFriends

func (p *Person) IsSetFriends() bool

func (*Person) IsSetPetNames

func (p *Person) IsSetPetNames() bool

func (*Person) IsSetVehicles

func (p *Person) IsSetVehicles() bool

func (*Person) Read

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

func (*Person) ReadField1

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

func (*Person) ReadField10

func (p *Person) ReadField10(iprot thrift.Protocol) error

func (*Person) ReadField2

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

func (*Person) ReadField3

func (p *Person) ReadField3(iprot thrift.Protocol) error

func (*Person) ReadField4

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

func (*Person) ReadField5

func (p *Person) ReadField5(iprot thrift.Protocol) error

func (*Person) ReadField6

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

func (*Person) ReadField7

func (p *Person) ReadField7(iprot thrift.Protocol) error

func (*Person) ReadField8

func (p *Person) ReadField8(iprot thrift.Protocol) error

func (*Person) ReadField9

func (p *Person) ReadField9(iprot thrift.Protocol) error

func (*Person) SetAddress

func (p *Person) SetAddress(address *string) *Person

func (*Person) SetAfraidOfAnimal

func (p *Person) SetAfraidOfAnimal(afraidOfAnimal *Animal) *Person

func (*Person) SetAge

func (p *Person) SetAge(age *int16) *Person

func (*Person) SetBestFriend

func (p *Person) SetBestFriend(bestFriend *PersonID) *Person

func (*Person) SetFavoriteColor

func (p *Person) SetFavoriteColor(favoriteColor *Color) *Person

func (*Person) SetFriends

func (p *Person) SetFriends(friends []PersonID) *Person

func (*Person) SetId

func (p *Person) SetId(id PersonID) *Person

func (*Person) SetName

func (p *Person) SetName(name string) *Person

func (*Person) SetPetNames

func (p *Person) SetPetNames(petNames map[Animal]string) *Person

func (*Person) SetVehicles

func (p *Person) SetVehicles(vehicles []*Vehicle) *Person

func (*Person) String

func (p *Person) String() string

func (*Person) Write

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

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

type PersonID = int64
var Person_BestFriend_DEFAULT PersonID

func PersonIDPtr

func PersonIDPtr(v PersonID) *PersonID

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 (p *Vehicle) DefaultGetColor() *Color

func (*Vehicle) GetColor

func (p *Vehicle) GetColor() *Color

func (*Vehicle) GetDescription

func (p *Vehicle) GetDescription() string

func (*Vehicle) GetHasAC

func (p *Vehicle) GetHasAC() bool

func (*Vehicle) GetLicensePlate

func (p *Vehicle) GetLicensePlate() string

func (*Vehicle) GetName

func (p *Vehicle) GetName() string

func (*Vehicle) IsSetColor

func (p *Vehicle) IsSetColor() bool

func (*Vehicle) IsSetDescription

func (p *Vehicle) IsSetDescription() bool

func (*Vehicle) IsSetHasAC

func (p *Vehicle) IsSetHasAC() bool

func (*Vehicle) IsSetLicensePlate

func (p *Vehicle) IsSetLicensePlate() bool

func (*Vehicle) IsSetName

func (p *Vehicle) IsSetName() bool

func (*Vehicle) Read

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

func (*Vehicle) ReadField1

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

func (*Vehicle) ReadField2

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

func (*Vehicle) ReadField3

func (p *Vehicle) ReadField3(iprot thrift.Protocol) error

func (*Vehicle) ReadField4

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

func (*Vehicle) ReadField5

func (p *Vehicle) ReadField5(iprot thrift.Protocol) error

func (*Vehicle) SetColor

func (v *Vehicle) SetColor(color *Color) *Vehicle

func (*Vehicle) SetDescription

func (v *Vehicle) SetDescription(description *string) *Vehicle

func (*Vehicle) SetHasAC

func (v *Vehicle) SetHasAC(hasAC bool) *Vehicle

func (*Vehicle) SetLicensePlate

func (v *Vehicle) SetLicensePlate(licensePlate *string) *Vehicle

func (*Vehicle) SetName

func (v *Vehicle) SetName(name *string) *Vehicle

func (*Vehicle) String

func (p *Vehicle) String() string

func (*Vehicle) Write

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

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

Jump to

Keyboard shortcuts

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