Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type CustomerServiceClient
- type CustomerServiceServer
- type FinByNumberRequest
- func (*FinByNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FinByNumberRequest) GetNumber() string
- func (*FinByNumberRequest) ProtoMessage()
- func (x *FinByNumberRequest) ProtoReflect() protoreflect.Message
- func (x *FinByNumberRequest) Reset()
- func (x *FinByNumberRequest) String() string
- type FindByNumberResponse
- func (*FindByNumberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindByNumberResponse) GetVehicles() []*Vehicle
- func (*FindByNumberResponse) ProtoMessage()
- func (x *FindByNumberResponse) ProtoReflect() protoreflect.Message
- func (x *FindByNumberResponse) Reset()
- func (x *FindByNumberResponse) String() string
- type FindByVinRequest
- type FindByVinResponse
- type UnimplementedCustomerServiceServer
- type UnsafeCustomerServiceServer
- type Vehicle
- func (*Vehicle) Descriptor() ([]byte, []int)deprecated
- func (x *Vehicle) GetActions() []*core.Action
- func (x *Vehicle) GetBrand() string
- func (x *Vehicle) GetModel() string
- func (x *Vehicle) GetVin() string
- func (x *Vehicle) GetYear() int32
- func (*Vehicle) ProtoMessage()
- func (x *Vehicle) ProtoReflect() protoreflect.Message
- func (x *Vehicle) Reset()
- func (x *Vehicle) String() string
Constants ¶
This section is empty.
Variables ¶
var CustomerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.customer.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindByNumber", Handler: _CustomerService_FindByNumber_Handler, }, { MethodName: "FindByVIN", Handler: _CustomerService_FindByVIN_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/core/customer/customer.proto", }
CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_core_customer_customer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
Types ¶
type CustomerServiceClient ¶
type CustomerServiceClient interface { FindByNumber(ctx context.Context, in *FinByNumberRequest, opts ...grpc.CallOption) (*FindByNumberResponse, error) FindByVIN(ctx context.Context, in *FindByVinRequest, opts ...grpc.CallOption) (*FindByVinResponse, error) }
CustomerServiceClient is the client API for CustomerService 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 NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc grpc.ClientConnInterface) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { FindByNumber(context.Context, *FinByNumberRequest) (*FindByNumberResponse, error) FindByVIN(context.Context, *FindByVinRequest) (*FindByVinResponse, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type FinByNumberRequest ¶
type FinByNumberRequest struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*FinByNumberRequest) Descriptor
deprecated
func (*FinByNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinByNumberRequest.ProtoReflect.Descriptor instead.
func (*FinByNumberRequest) GetNumber ¶
func (x *FinByNumberRequest) GetNumber() string
func (*FinByNumberRequest) ProtoMessage ¶
func (*FinByNumberRequest) ProtoMessage()
func (*FinByNumberRequest) ProtoReflect ¶
func (x *FinByNumberRequest) ProtoReflect() protoreflect.Message
func (*FinByNumberRequest) Reset ¶
func (x *FinByNumberRequest) Reset()
func (*FinByNumberRequest) String ¶
func (x *FinByNumberRequest) String() string
type FindByNumberResponse ¶
type FindByNumberResponse struct { Vehicles []*Vehicle `protobuf:"bytes,1,rep,name=vehicles,proto3" json:"vehicles,omitempty"` // contains filtered or unexported fields }
func (*FindByNumberResponse) Descriptor
deprecated
func (*FindByNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindByNumberResponse.ProtoReflect.Descriptor instead.
func (*FindByNumberResponse) GetVehicles ¶
func (x *FindByNumberResponse) GetVehicles() []*Vehicle
func (*FindByNumberResponse) ProtoMessage ¶
func (*FindByNumberResponse) ProtoMessage()
func (*FindByNumberResponse) ProtoReflect ¶
func (x *FindByNumberResponse) ProtoReflect() protoreflect.Message
func (*FindByNumberResponse) Reset ¶
func (x *FindByNumberResponse) Reset()
func (*FindByNumberResponse) String ¶
func (x *FindByNumberResponse) 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 FindByVinResponse ¶
type FindByVinResponse struct { Vehicle *Vehicle `protobuf:"bytes,1,opt,name=vehicle,proto3" json:"vehicle,omitempty"` // contains filtered or unexported fields }
func (*FindByVinResponse) Descriptor
deprecated
func (*FindByVinResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindByVinResponse.ProtoReflect.Descriptor instead.
func (*FindByVinResponse) GetVehicle ¶
func (x *FindByVinResponse) GetVehicle() *Vehicle
func (*FindByVinResponse) ProtoMessage ¶
func (*FindByVinResponse) ProtoMessage()
func (*FindByVinResponse) ProtoReflect ¶
func (x *FindByVinResponse) ProtoReflect() protoreflect.Message
func (*FindByVinResponse) Reset ¶
func (x *FindByVinResponse) Reset()
func (*FindByVinResponse) String ¶
func (x *FindByVinResponse) String() string
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) FindByNumber ¶
func (UnimplementedCustomerServiceServer) FindByNumber(context.Context, *FinByNumberRequest) (*FindByNumberResponse, error)
func (UnimplementedCustomerServiceServer) FindByVIN ¶
func (UnimplementedCustomerServiceServer) FindByVIN(context.Context, *FindByVinRequest) (*FindByVinResponse, error)
type UnsafeCustomerServiceServer ¶
type UnsafeCustomerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCustomerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomerServiceServer will result in compilation errors.
type Vehicle ¶
type Vehicle struct { Vin string `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"` Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"` Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` Year int32 `protobuf:"varint,4,opt,name=year,proto3" json:"year,omitempty"` Actions []*core.Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*Vehicle) Descriptor
deprecated
func (*Vehicle) GetActions ¶
func (*Vehicle) ProtoMessage ¶
func (*Vehicle) ProtoMessage()
func (*Vehicle) ProtoReflect ¶
func (x *Vehicle) ProtoReflect() protoreflect.Message