registration

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 9 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
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "registration.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FindByNumber",
			Handler:    _Service_FindByNumber_Handler,
		},
		{
			MethodName: "FindByVIN",
			Handler:    _Service_FindByVIN_Handler,
		},
		{
			MethodName: "FindByCode",
			Handler:    _Service_FindByCode_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/registration/service.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceServer added in v0.0.3

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type CodeRequest added in v0.0.3

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

func (*CodeRequest) Descriptor deprecated added in v0.0.3

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

Deprecated: Use CodeRequest.ProtoReflect.Descriptor instead.

func (*CodeRequest) GetCode added in v0.0.3

func (x *CodeRequest) GetCode() string

func (*CodeRequest) ProtoMessage added in v0.0.3

func (*CodeRequest) ProtoMessage()

func (*CodeRequest) ProtoReflect added in v0.0.3

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

func (*CodeRequest) Reset added in v0.0.3

func (x *CodeRequest) Reset()

func (*CodeRequest) String added in v0.0.3

func (x *CodeRequest) String() string

type NumberRequest added in v0.0.3

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

func (*NumberRequest) Descriptor deprecated added in v0.0.3

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

Deprecated: Use NumberRequest.ProtoReflect.Descriptor instead.

func (*NumberRequest) GetNumber added in v0.0.3

func (x *NumberRequest) GetNumber() string

func (*NumberRequest) ProtoMessage added in v0.0.3

func (*NumberRequest) ProtoMessage()

func (*NumberRequest) ProtoReflect added in v0.0.3

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

func (*NumberRequest) Reset added in v0.0.3

func (x *NumberRequest) Reset()

func (*NumberRequest) String added in v0.0.3

func (x *NumberRequest) String() string

type Record added in v0.0.3

type Record 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         string       `protobuf:"bytes,9,opt,name=fuel,proto3" json:"fuel,omitempty"`
	Kind         string       `protobuf:"bytes,10,opt,name=kind,proto3" json:"kind,omitempty"`
	Body         string       `protobuf:"bytes,17,opt,name=body,proto3" json:"body,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     string       `protobuf:"bytes,16,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated added in v0.0.3

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetBody added in v0.5.9

func (x *Record) GetBody() string

func (*Record) GetBrand added in v0.0.3

func (x *Record) GetBrand() string

func (*Record) GetCapacity added in v0.0.3

func (x *Record) GetCapacity() int32

func (*Record) GetCategory added in v0.0.3

func (x *Record) GetCategory() string

func (*Record) GetCode added in v0.0.3

func (x *Record) GetCode() string

func (*Record) GetColor added in v0.0.3

func (x *Record) GetColor() string

func (*Record) GetDate added in v0.0.3

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

func (*Record) GetFirstRegDate added in v0.0.3

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

func (*Record) GetFuel added in v0.0.3

func (x *Record) GetFuel() string

func (*Record) GetKind added in v0.0.3

func (x *Record) GetKind() string

func (*Record) GetModel added in v0.0.3

func (x *Record) GetModel() string

func (*Record) GetNumSeating added in v0.0.3

func (x *Record) GetNumSeating() int32

func (*Record) GetNumber added in v0.0.3

func (x *Record) GetNumber() string

func (*Record) GetOwnWeight added in v0.0.3

func (x *Record) GetOwnWeight() int32

func (*Record) GetTotalWeight added in v0.0.3

func (x *Record) GetTotalWeight() int32

func (*Record) GetVin added in v0.0.3

func (x *Record) GetVin() string

func (*Record) GetYear added in v0.0.3

func (x *Record) GetYear() int32

func (*Record) ProtoMessage added in v0.0.3

func (*Record) ProtoMessage()

func (*Record) ProtoReflect added in v0.0.3

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

func (*Record) Reset added in v0.0.3

func (x *Record) Reset()

func (*Record) String added in v0.0.3

func (x *Record) String() string

type Response added in v0.0.3

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

func (*Response) Descriptor deprecated added in v0.0.3

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetRegistrations added in v0.0.3

func (x *Response) GetRegistrations() []*Record

func (*Response) ProtoMessage added in v0.0.3

func (*Response) ProtoMessage()

func (*Response) ProtoReflect added in v0.0.3

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

func (*Response) Reset added in v0.0.3

func (x *Response) Reset()

func (*Response) String added in v0.0.3

func (x *Response) String() string

type ServiceClient added in v0.0.3

type ServiceClient interface {
	FindByNumber(ctx context.Context, in *NumberRequest, opts ...grpc.CallOption) (*Response, error)
	FindByVIN(ctx context.Context, in *VINRequest, opts ...grpc.CallOption) (*Response, error)
	FindByCode(ctx context.Context, in *CodeRequest, opts ...grpc.CallOption) (*Response, error)
}

ServiceClient is the client API for Service 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.

func NewServiceClient added in v0.0.3

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer added in v0.0.3

type ServiceServer interface {
	FindByNumber(context.Context, *NumberRequest) (*Response, error)
	FindByVIN(context.Context, *VINRequest) (*Response, error)
	FindByCode(context.Context, *CodeRequest) (*Response, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer added in v0.0.3

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) FindByCode added in v0.0.3

func (UnimplementedServiceServer) FindByNumber added in v0.0.3

func (UnimplementedServiceServer) FindByVIN added in v0.0.3

type UnsafeServiceServer added in v0.0.6

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

type VINRequest added in v0.0.3

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

func (*VINRequest) Descriptor deprecated added in v0.0.3

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

Deprecated: Use VINRequest.ProtoReflect.Descriptor instead.

func (*VINRequest) GetVin added in v0.0.3

func (x *VINRequest) GetVin() string

func (*VINRequest) ProtoMessage added in v0.0.3

func (*VINRequest) ProtoMessage()

func (*VINRequest) ProtoReflect added in v0.0.3

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

func (*VINRequest) Reset added in v0.0.3

func (x *VINRequest) Reset()

func (*VINRequest) String added in v0.0.3

func (x *VINRequest) String() string

Jump to

Keyboard shortcuts

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