alpr

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_alpr_alpr_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetRecognitions

func (x *Response) GetRecognitions() []*Recognition

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

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.

Jump to

Keyboard shortcuts

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