Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type NumberRequest
- type Recognition
- func (*Recognition) Descriptor() ([]byte, []int)deprecated
- func (x *Recognition) GetCreatedAt() *timestamppb.Timestamp
- func (x *Recognition) GetId() string
- func (x *Recognition) GetImageUrl() string
- func (x *Recognition) GetNumber() string
- func (*Recognition) ProtoMessage()
- func (x *Recognition) ProtoReflect() protoreflect.Message
- func (x *Recognition) Reset()
- func (x *Recognition) String() string
- type Response
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_alpr_alpr_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "alpr.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindByNumber", Handler: _Service_FindByNumber_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/alpr/alpr.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 ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type NumberRequest ¶
type NumberRequest struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*NumberRequest) Descriptor
deprecated
func (*NumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use NumberRequest.ProtoReflect.Descriptor instead.
func (*NumberRequest) GetNumber ¶
func (x *NumberRequest) GetNumber() string
func (*NumberRequest) ProtoMessage ¶
func (*NumberRequest) ProtoMessage()
func (*NumberRequest) ProtoReflect ¶
func (x *NumberRequest) ProtoReflect() protoreflect.Message
func (*NumberRequest) Reset ¶
func (x *NumberRequest) Reset()
func (*NumberRequest) String ¶
func (x *NumberRequest) String() string
type Recognition ¶
type Recognition struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ImageUrl string `protobuf:"bytes,2,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Recognition) Descriptor
deprecated
func (*Recognition) Descriptor() ([]byte, []int)
Deprecated: Use Recognition.ProtoReflect.Descriptor instead.
func (*Recognition) GetCreatedAt ¶
func (x *Recognition) GetCreatedAt() *timestamppb.Timestamp
func (*Recognition) GetId ¶
func (x *Recognition) GetId() string
func (*Recognition) GetImageUrl ¶
func (x *Recognition) GetImageUrl() string
func (*Recognition) GetNumber ¶
func (x *Recognition) GetNumber() string
func (*Recognition) ProtoMessage ¶
func (*Recognition) ProtoMessage()
func (*Recognition) ProtoReflect ¶
func (x *Recognition) ProtoReflect() protoreflect.Message
func (*Recognition) Reset ¶
func (x *Recognition) Reset()
func (*Recognition) String ¶
func (x *Recognition) String() string
type Response ¶
type Response struct { Recognitions []*Recognition `protobuf:"bytes,1,rep,name=recognitions,proto3" json:"recognitions,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetRecognitions ¶
func (x *Response) GetRecognitions() []*Recognition
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface {
FindByNumber(ctx context.Context, in *NumberRequest, 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 ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { FindByNumber(context.Context, *NumberRequest) (*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 ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) FindByNumber ¶
func (UnimplementedServiceServer) FindByNumber(context.Context, *NumberRequest) (*Response, error)
type UnsafeServiceServer ¶
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.