module1

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 GoUnusedProtection__ int

Functions

This section is empty.

Types

type Accessory

type Accessory = module0.Accessory

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

func (x *Automobile) Read(p thrift.Protocol) error

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

func (*Automobile) Write

func (x *Automobile) Write(p thrift.Protocol) error

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 CarPartName = module0.PartName

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

func (x *Collection) Read(p thrift.Protocol) error

func (*Collection) SetAutomobiles

func (x *Collection) SetAutomobiles(value []*Automobile) *Collection

func (*Collection) SetCars

func (x *Collection) SetCars(value []*Car) *Collection

func (*Collection) Write

func (x *Collection) Write(p thrift.Protocol) error

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 Drivers

type Drivers = []string

type Finder

type Finder interface {
	ByPlate(ctx context.Context, plate Plate) (*Automobile, error)
	AliasByPlate(ctx context.Context, plate Plate) (*Car, error)
	PreviousPlate(ctx context.Context, plate Plate) (Plate, error)
}

type FinderChannelClient

type FinderChannelClient struct {
	// contains filtered or unexported fields
}

func NewFinderChannelClient

func NewFinderChannelClient(channel thrift.RequestChannel) *FinderChannelClient

func (*FinderChannelClient) AliasByPlate

func (c *FinderChannelClient) AliasByPlate(ctx context.Context, plate Plate) (*Car, error)

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

func (c *FinderChannelClient) PreviousPlate(ctx context.Context, plate Plate) (Plate, error)

type FinderClient deprecated

type FinderClient struct {
	// contains filtered or unexported fields
}

Deprecated: Use FinderChannelClient instead.

func NewFinderClient deprecated

func NewFinderClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *FinderClient

Deprecated: Use NewFinderChannelClient() instead.

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 FinderClientInterface interface {
	thrift.ClientInterface
	ByPlate(plate Plate) (*Automobile, error)
	AliasByPlate(plate Plate) (*Car, error)
	PreviousPlate(plate Plate) (Plate, error)
}

Deprecated: Use Finder instead.

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 NewFinderThreadsafeClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *FinderThreadsafeClient

Deprecated: Use NewFinderChannelClient() instead.

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

func (x *MapContainer) Read(p thrift.Protocol) error

func (*MapContainer) SetMapval

func (x *MapContainer) SetMapval(value map[*MapKey]string) *MapContainer

func (*MapContainer) Write

func (x *MapContainer) Write(p thrift.Protocol) error

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 MapKey struct {
	Num    int64  `thrift:"num,1" json:"num" db:"num"`
	Strval string `thrift:"strval,2" json:"strval" db:"strval"`
}

func NewMapKey

func NewMapKey() *MapKey

func (*MapKey) GetNum

func (x *MapKey) GetNum() int64

func (*MapKey) GetStrval

func (x *MapKey) GetStrval() string

func (*MapKey) Read

func (x *MapKey) Read(p thrift.Protocol) error

func (*MapKey) SetNum

func (x *MapKey) SetNum(value int64) *MapKey

func (*MapKey) SetStrval

func (x *MapKey) SetStrval(value string) *MapKey

func (*MapKey) Write

func (x *MapKey) Write(p thrift.Protocol) error

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 NewPair

func NewPair() *Pair

func (*Pair) GetAutomobile

func (x *Pair) GetAutomobile() *Automobile

func (*Pair) GetCar

func (x *Pair) GetCar() *Car

func (*Pair) IsSetAutomobile

func (x *Pair) IsSetAutomobile() bool

func (*Pair) IsSetCar

func (x *Pair) IsSetCar() bool

func (*Pair) Read

func (x *Pair) Read(p thrift.Protocol) error

func (*Pair) SetAutomobile

func (x *Pair) SetAutomobile(value Automobile) *Pair

func (*Pair) SetCar

func (x *Pair) SetCar(value Car) *Pair

func (*Pair) Write

func (x *Pair) Write(p thrift.Protocol) error

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

type Plate

type Plate = string

type State

type State string

type Year

type Year = int32

Jump to

Keyboard shortcuts

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