registration

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_registration_registration_proto protoreflect.FileDescriptor
View Source
var File_proto_registration_service_proto protoreflect.FileDescriptor

Functions

func RegisterVehicleServiceServer

func RegisterVehicleServiceServer(s *grpc.Server, srv VehicleServiceServer)

Types

type FindByCodeRequest

type FindByCodeRequest struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*FindByCodeRequest) Descriptor deprecated

func (*FindByCodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindByCodeRequest.ProtoReflect.Descriptor instead.

func (*FindByCodeRequest) GetCode

func (x *FindByCodeRequest) GetCode() string

func (*FindByCodeRequest) ProtoMessage

func (*FindByCodeRequest) ProtoMessage()

func (*FindByCodeRequest) ProtoReflect

func (x *FindByCodeRequest) ProtoReflect() protoreflect.Message

func (*FindByCodeRequest) Reset

func (x *FindByCodeRequest) Reset()

func (*FindByCodeRequest) String

func (x *FindByCodeRequest) String() string

type FindByNumberRequest

type FindByNumberRequest struct {
	Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*FindByNumberRequest) Descriptor deprecated

func (*FindByNumberRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindByNumberRequest.ProtoReflect.Descriptor instead.

func (*FindByNumberRequest) GetNumber

func (x *FindByNumberRequest) GetNumber() string

func (*FindByNumberRequest) ProtoMessage

func (*FindByNumberRequest) ProtoMessage()

func (*FindByNumberRequest) ProtoReflect

func (x *FindByNumberRequest) ProtoReflect() protoreflect.Message

func (*FindByNumberRequest) Reset

func (x *FindByNumberRequest) Reset()

func (*FindByNumberRequest) String

func (x *FindByNumberRequest) String() string

type FindByVINRequest

type FindByVINRequest struct {
	Vin string `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"`
	// contains filtered or unexported fields
}

func (*FindByVINRequest) Descriptor deprecated

func (*FindByVINRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindByVINRequest.ProtoReflect.Descriptor instead.

func (*FindByVINRequest) GetVin

func (x *FindByVINRequest) GetVin() string

func (*FindByVINRequest) ProtoMessage

func (*FindByVINRequest) ProtoMessage()

func (*FindByVINRequest) ProtoReflect

func (x *FindByVINRequest) ProtoReflect() protoreflect.Message

func (*FindByVINRequest) Reset

func (x *FindByVINRequest) Reset()

func (*FindByVINRequest) String

func (x *FindByVINRequest) String() string

type Registration

type Registration struct {
	Code         string          `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Number       string          `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
	Vin          string          `protobuf:"bytes,3,opt,name=vin,proto3" json:"vin,omitempty"`
	Brand        string          `protobuf:"bytes,4,opt,name=brand,proto3" json:"brand,omitempty"`
	Model        string          `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
	Year         int32           `protobuf:"varint,6,opt,name=year,proto3" json:"year,omitempty"`
	Capacity     int32           `protobuf:"varint,7,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Color        string          `protobuf:"bytes,8,opt,name=color,proto3" json:"color,omitempty"`
	Fuel         []common.Fuel   `protobuf:"varint,9,rep,packed,name=fuel,proto3,enum=common.Fuel" json:"fuel,omitempty"`
	Kind         string          `protobuf:"bytes,10,opt,name=kind,proto3" json:"kind,omitempty"`
	NumSeating   int32           `protobuf:"varint,11,opt,name=num_seating,json=numSeating,proto3" json:"num_seating,omitempty"`
	OwnWeight    int32           `protobuf:"varint,12,opt,name=own_weight,json=ownWeight,proto3" json:"own_weight,omitempty"`
	TotalWeight  int32           `protobuf:"varint,13,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
	Date         *common.Date    `protobuf:"bytes,14,opt,name=date,proto3" json:"date,omitempty"`
	FirstRegDate *common.Date    `protobuf:"bytes,15,opt,name=first_reg_date,json=firstRegDate,proto3" json:"first_reg_date,omitempty"`
	Category     common.Category `protobuf:"varint,16,opt,name=category,proto3,enum=common.Category" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Registration) Descriptor deprecated

func (*Registration) Descriptor() ([]byte, []int)

Deprecated: Use Registration.ProtoReflect.Descriptor instead.

func (*Registration) GetBrand

func (x *Registration) GetBrand() string

func (*Registration) GetCapacity

func (x *Registration) GetCapacity() int32

func (*Registration) GetCategory

func (x *Registration) GetCategory() common.Category

func (*Registration) GetCode

func (x *Registration) GetCode() string

func (*Registration) GetColor

func (x *Registration) GetColor() string

func (*Registration) GetDate

func (x *Registration) GetDate() *common.Date

func (*Registration) GetFirstRegDate

func (x *Registration) GetFirstRegDate() *common.Date

func (*Registration) GetFuel

func (x *Registration) GetFuel() []common.Fuel

func (*Registration) GetKind

func (x *Registration) GetKind() string

func (*Registration) GetModel

func (x *Registration) GetModel() string

func (*Registration) GetNumSeating

func (x *Registration) GetNumSeating() int32

func (*Registration) GetNumber

func (x *Registration) GetNumber() string

func (*Registration) GetOwnWeight

func (x *Registration) GetOwnWeight() int32

func (*Registration) GetTotalWeight

func (x *Registration) GetTotalWeight() int32

func (*Registration) GetVin

func (x *Registration) GetVin() string

func (*Registration) GetYear

func (x *Registration) GetYear() int32

func (*Registration) ProtoMessage

func (*Registration) ProtoMessage()

func (*Registration) ProtoReflect

func (x *Registration) ProtoReflect() protoreflect.Message

func (*Registration) Reset

func (x *Registration) Reset()

func (*Registration) String

func (x *Registration) String() string

type RegistrationResponse

type RegistrationResponse struct {
	Registrations []*Registration `protobuf:"bytes,1,rep,name=registrations,proto3" json:"registrations,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistrationResponse) Descriptor deprecated

func (*RegistrationResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegistrationResponse.ProtoReflect.Descriptor instead.

func (*RegistrationResponse) GetRegistrations

func (x *RegistrationResponse) GetRegistrations() []*Registration

func (*RegistrationResponse) ProtoMessage

func (*RegistrationResponse) ProtoMessage()

func (*RegistrationResponse) ProtoReflect

func (x *RegistrationResponse) ProtoReflect() protoreflect.Message

func (*RegistrationResponse) Reset

func (x *RegistrationResponse) Reset()

func (*RegistrationResponse) String

func (x *RegistrationResponse) String() string

type UnimplementedVehicleServiceServer

type UnimplementedVehicleServiceServer struct {
}

UnimplementedVehicleServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedVehicleServiceServer) FindByCode

func (*UnimplementedVehicleServiceServer) FindByNumber

func (*UnimplementedVehicleServiceServer) FindByVIN

type VehicleServiceClient

type VehicleServiceClient interface {
	FindByNumber(ctx context.Context, in *FindByNumberRequest, opts ...grpc.CallOption) (*RegistrationResponse, error)
	FindByVIN(ctx context.Context, in *FindByVINRequest, opts ...grpc.CallOption) (*RegistrationResponse, error)
	FindByCode(ctx context.Context, in *FindByCodeRequest, opts ...grpc.CallOption) (*RegistrationResponse, error)
}

VehicleServiceClient is the client API for VehicleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type VehicleServiceServer

type VehicleServiceServer interface {
	FindByNumber(context.Context, *FindByNumberRequest) (*RegistrationResponse, error)
	FindByVIN(context.Context, *FindByVINRequest) (*RegistrationResponse, error)
	FindByCode(context.Context, *FindByCodeRequest) (*RegistrationResponse, error)
	// contains filtered or unexported methods
}

VehicleServiceServer is the server API for VehicleService service. All implementations must embed UnimplementedVehicleServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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