Documentation ¶
Index ¶
- Variables
- func NewLprServiceEndpoints() []*api.Endpoint
- func RegisterLprServiceHandler(s server.Server, hdlr LprServiceHandler, opts ...server.HandlerOption) error
- type IDReq
- type License
- type Licenses
- func (*Licenses) Descriptor() ([]byte, []int)deprecated
- func (x *Licenses) GetLprs() []*License
- func (x *Licenses) GetTotalpages() uint32
- func (x *Licenses) GetTotals() uint32
- func (*Licenses) ProtoMessage()
- func (x *Licenses) ProtoReflect() protoreflect.Message
- func (x *Licenses) Reset()
- func (x *Licenses) String() string
- type LogLevelRequest
- type LogResponse
- type Loglevel
- type Lpr
- func (*Lpr) Descriptor() ([]byte, []int)deprecated
- func (x *Lpr) GetDescription() string
- func (x *Lpr) GetId() int32
- func (x *Lpr) GetIp() string
- func (x *Lpr) GetLicensePlate() string
- func (x *Lpr) GetName() string
- func (x *Lpr) GetPort() int32
- func (x *Lpr) GetStatus() bool
- func (x *Lpr) GetTime() string
- func (*Lpr) ProtoMessage()
- func (x *Lpr) ProtoReflect() protoreflect.Message
- func (x *Lpr) Reset()
- func (x *Lpr) String() string
- type LprFilter
- func (*LprFilter) Descriptor() ([]byte, []int)deprecated
- func (x *LprFilter) GetAnd() []*LprFilter
- func (x *LprFilter) GetIdIn() []uint32
- func (x *LprFilter) GetIpIn() []string
- func (x *LprFilter) GetName() *wrappers.StringValue
- func (x *LprFilter) GetNameIn() []string
- func (x *LprFilter) GetOr() []*LprFilter
- func (x *LprFilter) GetPortIn() []uint32
- func (*LprFilter) ProtoMessage()
- func (x *LprFilter) ProtoReflect() protoreflect.Message
- func (x *LprFilter) Reset()
- func (x *LprFilter) String() string
- type LprRequest
- func (*LprRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LprRequest) GetDescription() string
- func (x *LprRequest) GetId() int32
- func (x *LprRequest) GetIp() string
- func (x *LprRequest) GetName() string
- func (x *LprRequest) GetPort() int32
- func (*LprRequest) ProtoMessage()
- func (x *LprRequest) ProtoReflect() protoreflect.Message
- func (x *LprRequest) Reset()
- func (x *LprRequest) String() string
- type LprRequests
- type LprService
- type LprServiceHandler
- type LprService_LprStreamService
- type LprService_LprStreamStream
- type LprService_LprsStreamService
- type LprService_LprsStreamStream
- type LprStreamResponse
- func (*LprStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LprStreamResponse) GetId() int32
- func (x *LprStreamResponse) GetImages() string
- func (*LprStreamResponse) ProtoMessage()
- func (x *LprStreamResponse) ProtoReflect() protoreflect.Message
- func (x *LprStreamResponse) Reset()
- func (x *LprStreamResponse) String() string
- type Lprs
- func (*Lprs) Descriptor() ([]byte, []int)deprecated
- func (x *Lprs) GetCurrpages() uint32
- func (x *Lprs) GetLprs() []*Lpr
- func (x *Lprs) GetTotalpages() uint32
- func (x *Lprs) GetTotals() uint32
- func (*Lprs) ProtoMessage()
- func (x *Lprs) ProtoReflect() protoreflect.Message
- func (x *Lprs) Reset()
- func (x *Lprs) String() string
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetFilter() *LprFilter
- func (x *Query) GetLimit() uint32
- func (x *Query) GetOffset() uint32
- func (x *Query) GetPage() uint32
- func (x *Query) GetPerPage() uint32
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_lpr_lpr_proto protoreflect.FileDescriptor
Functions ¶
func NewLprServiceEndpoints ¶
func RegisterLprServiceHandler ¶
func RegisterLprServiceHandler(s server.Server, hdlr LprServiceHandler, opts ...server.HandlerOption) error
Types ¶
type IDReq ¶
type IDReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IDReq) Descriptor
deprecated
func (*IDReq) ProtoMessage ¶
func (*IDReq) ProtoMessage()
func (*IDReq) ProtoReflect ¶
func (x *IDReq) ProtoReflect() protoreflect.Message
type License ¶
type License struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` License string `protobuf:"bytes,2,opt,name=license,proto3" json:"license,omitempty"` //车牌识别结果 // contains filtered or unexported fields }
func (*License) Descriptor
deprecated
func (*License) GetLicense ¶
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
func (*License) ProtoReflect ¶
func (x *License) ProtoReflect() protoreflect.Message
type Licenses ¶
type Licenses struct { Lprs []*License `protobuf:"bytes,1,rep,name=lprs,proto3" json:"lprs,omitempty"` Totalpages uint32 `protobuf:"varint,2,opt,name=totalpages,proto3" json:"totalpages,omitempty"` Totals uint32 `protobuf:"varint,3,opt,name=totals,proto3" json:"totals,omitempty"` // contains filtered or unexported fields }
func (*Licenses) Descriptor
deprecated
func (*Licenses) GetTotalpages ¶
func (*Licenses) ProtoMessage ¶
func (*Licenses) ProtoMessage()
func (*Licenses) ProtoReflect ¶
func (x *Licenses) ProtoReflect() protoreflect.Message
type LogLevelRequest ¶
type LogLevelRequest struct {
// contains filtered or unexported fields
}
func (*LogLevelRequest) Descriptor
deprecated
func (*LogLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogLevelRequest.ProtoReflect.Descriptor instead.
func (*LogLevelRequest) ProtoMessage ¶
func (*LogLevelRequest) ProtoMessage()
func (*LogLevelRequest) ProtoReflect ¶
func (x *LogLevelRequest) ProtoReflect() protoreflect.Message
func (*LogLevelRequest) Reset ¶
func (x *LogLevelRequest) Reset()
func (*LogLevelRequest) String ¶
func (x *LogLevelRequest) String() string
type LogResponse ¶
type LogResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*LogResponse) Descriptor
deprecated
func (*LogResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogResponse.ProtoReflect.Descriptor instead.
func (*LogResponse) GetName ¶
func (x *LogResponse) GetName() string
func (*LogResponse) ProtoMessage ¶
func (*LogResponse) ProtoMessage()
func (*LogResponse) ProtoReflect ¶
func (x *LogResponse) ProtoReflect() protoreflect.Message
func (*LogResponse) Reset ¶
func (x *LogResponse) Reset()
func (*LogResponse) String ¶
func (x *LogResponse) String() string
type Loglevel ¶
type Loglevel struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` // contains filtered or unexported fields }
func (*Loglevel) Descriptor
deprecated
func (*Loglevel) ProtoMessage ¶
func (*Loglevel) ProtoMessage()
func (*Loglevel) ProtoReflect ¶
func (x *Loglevel) ProtoReflect() protoreflect.Message
type Lpr ¶
type Lpr struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` LicensePlate string `protobuf:"bytes,5,opt,name=licensePlate,proto3" json:"licensePlate,omitempty"` Time string `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` Status bool `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Lpr) Descriptor
deprecated
func (*Lpr) GetDescription ¶
func (*Lpr) GetLicensePlate ¶
func (*Lpr) ProtoMessage ¶
func (*Lpr) ProtoMessage()
func (*Lpr) ProtoReflect ¶
func (x *Lpr) ProtoReflect() protoreflect.Message
type LprFilter ¶
type LprFilter struct { And []*LprFilter `protobuf:"bytes,1,rep,name=and,proto3" json:"and,omitempty"` Or []*LprFilter `protobuf:"bytes,2,rep,name=or,proto3" json:"or,omitempty"` IdIn []uint32 `protobuf:"varint,3,rep,packed,name=idIn,proto3" json:"idIn,omitempty"` Name *wrappers.StringValue `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` NameIn []string `protobuf:"bytes,5,rep,name=nameIn,proto3" json:"nameIn,omitempty"` IpIn []string `protobuf:"bytes,6,rep,name=ipIn,proto3" json:"ipIn,omitempty"` PortIn []uint32 `protobuf:"varint,7,rep,packed,name=portIn,proto3" json:"portIn,omitempty"` // contains filtered or unexported fields }
func (*LprFilter) Descriptor
deprecated
func (*LprFilter) GetName ¶
func (x *LprFilter) GetName() *wrappers.StringValue
func (*LprFilter) ProtoMessage ¶
func (*LprFilter) ProtoMessage()
func (*LprFilter) ProtoReflect ¶
func (x *LprFilter) ProtoReflect() protoreflect.Message
type LprRequest ¶
type LprRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*LprRequest) Descriptor
deprecated
func (*LprRequest) Descriptor() ([]byte, []int)
Deprecated: Use LprRequest.ProtoReflect.Descriptor instead.
func (*LprRequest) GetDescription ¶
func (x *LprRequest) GetDescription() string
func (*LprRequest) GetId ¶
func (x *LprRequest) GetId() int32
func (*LprRequest) GetIp ¶
func (x *LprRequest) GetIp() string
func (*LprRequest) GetName ¶
func (x *LprRequest) GetName() string
func (*LprRequest) GetPort ¶
func (x *LprRequest) GetPort() int32
func (*LprRequest) ProtoMessage ¶
func (*LprRequest) ProtoMessage()
func (*LprRequest) ProtoReflect ¶
func (x *LprRequest) ProtoReflect() protoreflect.Message
func (*LprRequest) Reset ¶
func (x *LprRequest) Reset()
func (*LprRequest) String ¶
func (x *LprRequest) String() string
type LprRequests ¶
type LprRequests struct { Lprs []*LprRequest `protobuf:"bytes,1,rep,name=lprs,proto3" json:"lprs,omitempty"` // contains filtered or unexported fields }
func (*LprRequests) Descriptor
deprecated
func (*LprRequests) Descriptor() ([]byte, []int)
Deprecated: Use LprRequests.ProtoReflect.Descriptor instead.
func (*LprRequests) GetLprs ¶
func (x *LprRequests) GetLprs() []*LprRequest
func (*LprRequests) ProtoMessage ¶
func (*LprRequests) ProtoMessage()
func (*LprRequests) ProtoReflect ¶
func (x *LprRequests) ProtoReflect() protoreflect.Message
func (*LprRequests) Reset ¶
func (x *LprRequests) Reset()
func (*LprRequests) String ¶
func (x *LprRequests) String() string
type LprService ¶
type LprService interface { //设置车牌识别摄像头 AddLpr(ctx context.Context, in *LprRequest, opts ...client.CallOption) (*Response, error) //批量添加 AddLprs(ctx context.Context, in *LprRequests, opts ...client.CallOption) (*Response, error) DeleteLpr(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error) ConfigLpr(ctx context.Context, in *LprRequest, opts ...client.CallOption) (*Response, error) GetLprs(ctx context.Context, in *Query, opts ...client.CallOption) (*Lprs, error) //返回单个摄像头的图片流数据 LprStream(ctx context.Context, opts ...client.CallOption) (LprService_LprStreamService, error) //返回所有图片流数据 LprsStream(ctx context.Context, in *LprRequest, opts ...client.CallOption) (LprService_LprsStreamService, error) //根据出入口id编号 开启视频 Start(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error) //根据出入口id编号 关闭视频 Close(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error) //根据出入口id编号 返回车牌识别结果 GetLicense(ctx context.Context, in *IDReq, opts ...client.CallOption) (*License, error) //根据出入口id编号 清除车牌识别结果 ClearLicense(ctx context.Context, in *IDReq, opts ...client.CallOption) (*License, error) //根据条件查询车牌识别结果 GetLicenses(ctx context.Context, in *Query, opts ...client.CallOption) (*Licenses, error) //获取服务日志等级 GetLogLevel(ctx context.Context, in *LogLevelRequest, opts ...client.CallOption) (*Loglevel, error) //设置服务日志等级 SetLogLevel(ctx context.Context, in *Loglevel, opts ...client.CallOption) (*LogResponse, error) }
func NewLprService ¶
func NewLprService(name string, c client.Client) LprService
type LprServiceHandler ¶
type LprServiceHandler interface { //设置车牌识别摄像头 AddLpr(context.Context, *LprRequest, *Response) error //批量添加 AddLprs(context.Context, *LprRequests, *Response) error DeleteLpr(context.Context, *IDReq, *Response) error ConfigLpr(context.Context, *LprRequest, *Response) error GetLprs(context.Context, *Query, *Lprs) error //返回单个摄像头的图片流数据 LprStream(context.Context, LprService_LprStreamStream) error //返回所有图片流数据 LprsStream(context.Context, *LprRequest, LprService_LprsStreamStream) error //根据出入口id编号 开启视频 Start(context.Context, *IDReq, *Response) error //根据出入口id编号 关闭视频 Close(context.Context, *IDReq, *Response) error //根据出入口id编号 返回车牌识别结果 GetLicense(context.Context, *IDReq, *License) error //根据出入口id编号 清除车牌识别结果 ClearLicense(context.Context, *IDReq, *License) error //根据条件查询车牌识别结果 GetLicenses(context.Context, *Query, *Licenses) error //获取服务日志等级 GetLogLevel(context.Context, *LogLevelRequest, *Loglevel) error //设置服务日志等级 SetLogLevel(context.Context, *Loglevel, *LogResponse) error }
type LprService_LprStreamService ¶
type LprService_LprStreamService interface { Context() context.Context SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*LprRequest) error Recv() (*LprStreamResponse, error) }
type LprService_LprStreamStream ¶
type LprService_LprStreamStream interface { Context() context.Context SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*LprStreamResponse) error Recv() (*LprRequest, error) }
type LprStreamResponse ¶
type LprStreamResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Images string `protobuf:"bytes,2,opt,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
func (*LprStreamResponse) Descriptor
deprecated
func (*LprStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use LprStreamResponse.ProtoReflect.Descriptor instead.
func (*LprStreamResponse) GetId ¶
func (x *LprStreamResponse) GetId() int32
func (*LprStreamResponse) GetImages ¶
func (x *LprStreamResponse) GetImages() string
func (*LprStreamResponse) ProtoMessage ¶
func (*LprStreamResponse) ProtoMessage()
func (*LprStreamResponse) ProtoReflect ¶
func (x *LprStreamResponse) ProtoReflect() protoreflect.Message
func (*LprStreamResponse) Reset ¶
func (x *LprStreamResponse) Reset()
func (*LprStreamResponse) String ¶
func (x *LprStreamResponse) String() string
type Lprs ¶
type Lprs struct { Lprs []*Lpr `protobuf:"bytes,1,rep,name=lprs,proto3" json:"lprs,omitempty"` Totalpages uint32 `protobuf:"varint,2,opt,name=totalpages,proto3" json:"totalpages,omitempty"` Currpages uint32 `protobuf:"varint,3,opt,name=currpages,proto3" json:"currpages,omitempty"` Totals uint32 `protobuf:"varint,4,opt,name=totals,proto3" json:"totals,omitempty"` // contains filtered or unexported fields }
func (*Lprs) Descriptor
deprecated
func (*Lprs) GetCurrpages ¶
func (*Lprs) GetTotalpages ¶
func (*Lprs) ProtoMessage ¶
func (*Lprs) ProtoMessage()
func (*Lprs) ProtoReflect ¶
func (x *Lprs) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PerPage uint32 `protobuf:"varint,4,opt,name=perPage,proto3" json:"perPage,omitempty"` Filter *LprFilter `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetPerPage ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.