Documentation ¶
Index ¶
- Variables
- type Accessory
- type Automobile
- func (x *Automobile) GetAccessories() []*Accessory
- func (x *Automobile) GetDrivers() Drivers
- func (x *Automobile) GetFirstPlate() *Plate
- func (x *Automobile) GetPartNames() map[int32]*CarPartName
- func (x *Automobile) GetPlate() Plate
- func (x *Automobile) GetPreviousPlate() *Plate
- func (x *Automobile) GetYear() Year
- func (x *Automobile) IsSetAccessories() bool
- func (x *Automobile) IsSetDrivers() bool
- func (x *Automobile) IsSetFirstPlate() bool
- func (x *Automobile) IsSetPartNames() bool
- func (x *Automobile) IsSetPreviousPlate() bool
- func (x *Automobile) Read(p thrift.Protocol) error
- func (x *Automobile) SetAccessories(value []*Accessory) *Automobile
- func (x *Automobile) SetDrivers(value Drivers) *Automobile
- func (x *Automobile) SetFirstPlate(value Plate) *Automobile
- func (x *Automobile) SetPartNames(value map[int32]*CarPartName) *Automobile
- func (x *Automobile) SetPlate(value Plate) *Automobile
- func (x *Automobile) SetPreviousPlate(value Plate) *Automobile
- func (x *Automobile) SetYear(value Year) *Automobile
- func (x *Automobile) Write(p thrift.Protocol) error
- type AutomobileBuilderdeprecated
- func (x *AutomobileBuilder) Accessories(value []*Accessory) *AutomobileBuilder
- func (x *AutomobileBuilder) Drivers(value Drivers) *AutomobileBuilder
- func (x *AutomobileBuilder) Emit() *Automobile
- func (x *AutomobileBuilder) FirstPlate(value *Plate) *AutomobileBuilder
- func (x *AutomobileBuilder) PartNames(value map[int32]*CarPartName) *AutomobileBuilder
- func (x *AutomobileBuilder) Plate(value Plate) *AutomobileBuilder
- func (x *AutomobileBuilder) PreviousPlate(value *Plate) *AutomobileBuilder
- func (x *AutomobileBuilder) Year(value Year) *AutomobileBuilder
- type Car
- type CarPartName
- type Collection
- func (x *Collection) GetAutomobiles() []*Automobile
- func (x *Collection) GetCars() []*Car
- func (x *Collection) IsSetAutomobiles() bool
- func (x *Collection) IsSetCars() bool
- func (x *Collection) Read(p thrift.Protocol) error
- func (x *Collection) SetAutomobiles(value []*Automobile) *Collection
- func (x *Collection) SetCars(value []*Car) *Collection
- func (x *Collection) Write(p thrift.Protocol) error
- type CollectionBuilderdeprecated
- type Drivers
- type Finder
- type FinderChannelClient
- func (c *FinderChannelClient) AliasByPlate(ctx context.Context, plate Plate) (*Car, error)
- func (c *FinderChannelClient) ByPlate(ctx context.Context, plate Plate) (*Automobile, error)
- func (c *FinderChannelClient) Close() error
- func (c *FinderChannelClient) IsOpen() bool
- func (c *FinderChannelClient) Open() error
- func (c *FinderChannelClient) PreviousPlate(ctx context.Context, plate Plate) (Plate, error)
- type FinderClientdeprecated
- func NewFinderClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *FinderClientdeprecated
- func NewFinderClientFactory(t thrift.Transport, pf thrift.ProtocolFactory) *FinderClientdeprecated
- func NewFinderClientProtocol(prot thrift.Protocol) *FinderClientdeprecated
- func NewFinderThreadsafeClientProtocol(prot thrift.Protocol) *FinderClientdeprecated
- func (c *FinderClient) AliasByPlate(plate Plate) (*Car, error)
- func (c *FinderClient) ByPlate(plate Plate) (*Automobile, error)
- func (c *FinderClient) Close() error
- func (c *FinderClient) IsOpen() bool
- func (c *FinderClient) Open() error
- func (c *FinderClient) PreviousPlate(plate Plate) (Plate, error)
- type FinderClientInterfacedeprecated
- type FinderProcessor
- func (p *FinderProcessor) AddToFunctionServiceMap(key, service string)
- func (p *FinderProcessor) AddToProcessorMap(key string, processor thrift.ProcessorFunction)
- func (p *FinderProcessor) FunctionServiceMap() map[string]string
- func (p *FinderProcessor) GetProcessorFunction(key string) (processor thrift.ProcessorFunction, err error)
- func (p *FinderProcessor) ProcessorMap() map[string]thrift.ProcessorFunction
- type FinderThreadsafeClientdeprecated
- type MapContainer
- type MapContainerBuilderdeprecated
- type MapKey
- type MapKeyBuilderdeprecated
- type Pair
- func (x *Pair) GetAutomobile() *Automobile
- func (x *Pair) GetCar() *Car
- func (x *Pair) IsSetAutomobile() bool
- func (x *Pair) IsSetCar() bool
- func (x *Pair) Read(p thrift.Protocol) error
- func (x *Pair) SetAutomobile(value Automobile) *Pair
- func (x *Pair) SetCar(value Car) *Pair
- func (x *Pair) Write(p thrift.Protocol) error
- type PairBuilderdeprecated
- type Plate
- type State
- type Year
Constants ¶
This section is empty.
Variables ¶
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type Automobile ¶
type Automobile struct { Plate Plate `thrift:"plate,1" json:"plate" db:"plate"` PreviousPlate *Plate `thrift:"previous_plate,2,optional" json:"previous_plate,omitempty" db:"previous_plate"` FirstPlate *Plate `thrift:"first_plate,3,optional" json:"first_plate,omitempty" db:"first_plate"` Year Year `thrift:"year,4" json:"year" db:"year"` Drivers Drivers `thrift:"drivers,5" json:"drivers" db:"drivers"` Accessories []*Accessory `thrift:"Accessories,6" json:"Accessories" db:"Accessories"` PartNames map[int32]*CarPartName `thrift:"PartNames,7" json:"PartNames" db:"PartNames"` }
func NewAutomobile ¶
func NewAutomobile() *Automobile
func (*Automobile) GetAccessories ¶
func (x *Automobile) GetAccessories() []*Accessory
func (*Automobile) GetDrivers ¶
func (x *Automobile) GetDrivers() Drivers
func (*Automobile) GetFirstPlate ¶
func (x *Automobile) GetFirstPlate() *Plate
func (*Automobile) GetPartNames ¶
func (x *Automobile) GetPartNames() map[int32]*CarPartName
func (*Automobile) GetPlate ¶
func (x *Automobile) GetPlate() Plate
func (*Automobile) GetPreviousPlate ¶
func (x *Automobile) GetPreviousPlate() *Plate
func (*Automobile) GetYear ¶
func (x *Automobile) GetYear() Year
func (*Automobile) IsSetAccessories ¶
func (x *Automobile) IsSetAccessories() bool
func (*Automobile) IsSetDrivers ¶
func (x *Automobile) IsSetDrivers() bool
func (*Automobile) IsSetFirstPlate ¶
func (x *Automobile) IsSetFirstPlate() bool
func (*Automobile) IsSetPartNames ¶
func (x *Automobile) IsSetPartNames() bool
func (*Automobile) IsSetPreviousPlate ¶
func (x *Automobile) IsSetPreviousPlate() bool
func (*Automobile) SetAccessories ¶
func (x *Automobile) SetAccessories(value []*Accessory) *Automobile
func (*Automobile) SetDrivers ¶
func (x *Automobile) SetDrivers(value Drivers) *Automobile
func (*Automobile) SetFirstPlate ¶
func (x *Automobile) SetFirstPlate(value Plate) *Automobile
func (*Automobile) SetPartNames ¶
func (x *Automobile) SetPartNames(value map[int32]*CarPartName) *Automobile
func (*Automobile) SetPlate ¶
func (x *Automobile) SetPlate(value Plate) *Automobile
func (*Automobile) SetPreviousPlate ¶
func (x *Automobile) SetPreviousPlate(value Plate) *Automobile
func (*Automobile) SetYear ¶
func (x *Automobile) SetYear(value Year) *Automobile
type AutomobileBuilder
deprecated
type AutomobileBuilder struct {
// contains filtered or unexported fields
}
Deprecated: Use Automobile.Set* methods instead or set the fields directly.
func NewAutomobileBuilder ¶
func NewAutomobileBuilder() *AutomobileBuilder
func (*AutomobileBuilder) Accessories ¶
func (x *AutomobileBuilder) Accessories(value []*Accessory) *AutomobileBuilder
func (*AutomobileBuilder) Drivers ¶
func (x *AutomobileBuilder) Drivers(value Drivers) *AutomobileBuilder
func (*AutomobileBuilder) Emit ¶
func (x *AutomobileBuilder) Emit() *Automobile
func (*AutomobileBuilder) FirstPlate ¶
func (x *AutomobileBuilder) FirstPlate(value *Plate) *AutomobileBuilder
func (*AutomobileBuilder) PartNames ¶
func (x *AutomobileBuilder) PartNames(value map[int32]*CarPartName) *AutomobileBuilder
func (*AutomobileBuilder) Plate ¶
func (x *AutomobileBuilder) Plate(value Plate) *AutomobileBuilder
func (*AutomobileBuilder) PreviousPlate ¶
func (x *AutomobileBuilder) PreviousPlate(value *Plate) *AutomobileBuilder
func (*AutomobileBuilder) Year ¶
func (x *AutomobileBuilder) Year(value Year) *AutomobileBuilder
type Car ¶
type Car = Automobile
type CarPartName ¶
type Collection ¶
type Collection struct { Automobiles []*Automobile `thrift:"automobiles,1" json:"automobiles" db:"automobiles"` Cars []*Car `thrift:"cars,2" json:"cars" db:"cars"` }
func NewCollection ¶
func NewCollection() *Collection
func (*Collection) GetAutomobiles ¶
func (x *Collection) GetAutomobiles() []*Automobile
func (*Collection) GetCars ¶
func (x *Collection) GetCars() []*Car
func (*Collection) IsSetAutomobiles ¶
func (x *Collection) IsSetAutomobiles() bool
func (*Collection) IsSetCars ¶
func (x *Collection) IsSetCars() bool
func (*Collection) SetAutomobiles ¶
func (x *Collection) SetAutomobiles(value []*Automobile) *Collection
func (*Collection) SetCars ¶
func (x *Collection) SetCars(value []*Car) *Collection
type CollectionBuilder
deprecated
type CollectionBuilder struct {
// contains filtered or unexported fields
}
Deprecated: Use Collection.Set* methods instead or set the fields directly.
func NewCollectionBuilder ¶
func NewCollectionBuilder() *CollectionBuilder
func (*CollectionBuilder) Automobiles ¶
func (x *CollectionBuilder) Automobiles(value []*Automobile) *CollectionBuilder
func (*CollectionBuilder) Cars ¶
func (x *CollectionBuilder) Cars(value []*Car) *CollectionBuilder
func (*CollectionBuilder) Emit ¶
func (x *CollectionBuilder) Emit() *Collection
type FinderChannelClient ¶
type FinderChannelClient struct {
// contains filtered or unexported fields
}
func NewFinderChannelClient ¶
func NewFinderChannelClient(channel thrift.RequestChannel) *FinderChannelClient
func (*FinderChannelClient) AliasByPlate ¶
func (*FinderChannelClient) ByPlate ¶
func (c *FinderChannelClient) ByPlate(ctx context.Context, plate Plate) (*Automobile, error)
func (*FinderChannelClient) Close ¶
func (c *FinderChannelClient) Close() error
func (*FinderChannelClient) IsOpen ¶
func (c *FinderChannelClient) IsOpen() bool
func (*FinderChannelClient) Open ¶
func (c *FinderChannelClient) Open() error
func (*FinderChannelClient) PreviousPlate ¶
type FinderClient
deprecated
type FinderClient struct {
// contains filtered or unexported fields
}
Deprecated: Use FinderChannelClient instead.
func NewFinderClient
deprecated
func NewFinderClientFactory
deprecated
func NewFinderClientFactory(t thrift.Transport, pf thrift.ProtocolFactory) *FinderClient
Deprecated: Use NewFinderChannelClient() instead.
func NewFinderClientProtocol
deprecated
func NewFinderClientProtocol(prot thrift.Protocol) *FinderClient
Deprecated: Use NewFinderChannelClient() instead.
func NewFinderThreadsafeClientProtocol
deprecated
func NewFinderThreadsafeClientProtocol(prot thrift.Protocol) *FinderClient
Deprecated: Use NewFinderChannelClient() instead.
func (*FinderClient) AliasByPlate ¶
func (c *FinderClient) AliasByPlate(plate Plate) (*Car, error)
func (*FinderClient) ByPlate ¶
func (c *FinderClient) ByPlate(plate Plate) (*Automobile, error)
func (*FinderClient) Close ¶
func (c *FinderClient) Close() error
func (*FinderClient) IsOpen ¶
func (c *FinderClient) IsOpen() bool
func (*FinderClient) Open ¶
func (c *FinderClient) Open() error
func (*FinderClient) PreviousPlate ¶
func (c *FinderClient) PreviousPlate(plate Plate) (Plate, error)
type FinderClientInterface
deprecated
type FinderProcessor ¶
type FinderProcessor struct {
// contains filtered or unexported fields
}
func NewFinderProcessor ¶
func NewFinderProcessor(handler Finder) *FinderProcessor
func (*FinderProcessor) AddToFunctionServiceMap ¶
func (p *FinderProcessor) AddToFunctionServiceMap(key, service string)
func (*FinderProcessor) AddToProcessorMap ¶
func (p *FinderProcessor) AddToProcessorMap(key string, processor thrift.ProcessorFunction)
func (*FinderProcessor) FunctionServiceMap ¶
func (p *FinderProcessor) FunctionServiceMap() map[string]string
func (*FinderProcessor) GetProcessorFunction ¶
func (p *FinderProcessor) GetProcessorFunction(key string) (processor thrift.ProcessorFunction, err error)
func (*FinderProcessor) ProcessorMap ¶
func (p *FinderProcessor) ProcessorMap() map[string]thrift.ProcessorFunction
type FinderThreadsafeClient
deprecated
type FinderThreadsafeClient = FinderClient
Deprecated: Use FinderChannelClient instead.
func NewFinderThreadsafeClient
deprecated
func NewFinderThreadsafeClientFactory
deprecated
func NewFinderThreadsafeClientFactory(t thrift.Transport, pf thrift.ProtocolFactory) *FinderThreadsafeClient
Deprecated: Use NewFinderChannelClient() instead.
type MapContainer ¶
type MapContainer struct {
Mapval map[*MapKey]string `thrift:"mapval,1" json:"mapval" db:"mapval"`
}
func NewMapContainer ¶
func NewMapContainer() *MapContainer
func (*MapContainer) GetMapval ¶
func (x *MapContainer) GetMapval() map[*MapKey]string
func (*MapContainer) IsSetMapval ¶
func (x *MapContainer) IsSetMapval() bool
func (*MapContainer) SetMapval ¶
func (x *MapContainer) SetMapval(value map[*MapKey]string) *MapContainer
type MapContainerBuilder
deprecated
type MapContainerBuilder struct {
// contains filtered or unexported fields
}
Deprecated: Use MapContainer.Set* methods instead or set the fields directly.
func NewMapContainerBuilder ¶
func NewMapContainerBuilder() *MapContainerBuilder
func (*MapContainerBuilder) Emit ¶
func (x *MapContainerBuilder) Emit() *MapContainer
func (*MapContainerBuilder) Mapval ¶
func (x *MapContainerBuilder) Mapval(value map[*MapKey]string) *MapContainerBuilder
type MapKey ¶
type MapKeyBuilder
deprecated
type MapKeyBuilder struct {
// contains filtered or unexported fields
}
Deprecated: Use MapKey.Set* methods instead or set the fields directly.
func NewMapKeyBuilder ¶
func NewMapKeyBuilder() *MapKeyBuilder
func (*MapKeyBuilder) Emit ¶
func (x *MapKeyBuilder) Emit() *MapKey
func (*MapKeyBuilder) Num ¶
func (x *MapKeyBuilder) Num(value int64) *MapKeyBuilder
func (*MapKeyBuilder) Strval ¶
func (x *MapKeyBuilder) Strval(value string) *MapKeyBuilder
type Pair ¶
type Pair struct { Automobile *Automobile `thrift:"automobile,1" json:"automobile" db:"automobile"` Car *Car `thrift:"car,2" json:"car" db:"car"` }
func (*Pair) GetAutomobile ¶
func (x *Pair) GetAutomobile() *Automobile
func (*Pair) IsSetAutomobile ¶
func (*Pair) SetAutomobile ¶
func (x *Pair) SetAutomobile(value Automobile) *Pair
type PairBuilder
deprecated
type PairBuilder struct {
// contains filtered or unexported fields
}
Deprecated: Use Pair.Set* methods instead or set the fields directly.
func NewPairBuilder ¶
func NewPairBuilder() *PairBuilder
func (*PairBuilder) Automobile ¶
func (x *PairBuilder) Automobile(value *Automobile) *PairBuilder
func (*PairBuilder) Car ¶
func (x *PairBuilder) Car(value *Car) *PairBuilder
func (*PairBuilder) Emit ¶
func (x *PairBuilder) Emit() *Pair