go_micro_srv_lpr

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_lpr_lpr_proto protoreflect.FileDescriptor

Functions

func NewLprServiceEndpoints

func NewLprServiceEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use IDReq.ProtoReflect.Descriptor instead.

func (*IDReq) GetId

func (x *IDReq) GetId() int32

func (*IDReq) ProtoMessage

func (*IDReq) ProtoMessage()

func (*IDReq) ProtoReflect

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

func (*IDReq) Reset

func (x *IDReq) Reset()

func (*IDReq) String

func (x *IDReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use License.ProtoReflect.Descriptor instead.

func (*License) GetId

func (x *License) GetId() int32

func (*License) GetLicense

func (x *License) GetLicense() string

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) ProtoReflect

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

func (*License) Reset

func (x *License) Reset()

func (*License) String

func (x *License) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Licenses.ProtoReflect.Descriptor instead.

func (*Licenses) GetLprs

func (x *Licenses) GetLprs() []*License

func (*Licenses) GetTotalpages

func (x *Licenses) GetTotalpages() uint32

func (*Licenses) GetTotals

func (x *Licenses) GetTotals() uint32

func (*Licenses) ProtoMessage

func (*Licenses) ProtoMessage()

func (*Licenses) ProtoReflect

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

func (*Licenses) Reset

func (x *Licenses) Reset()

func (*Licenses) String

func (x *Licenses) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Loglevel.ProtoReflect.Descriptor instead.

func (*Loglevel) GetLevel

func (x *Loglevel) GetLevel() uint32

func (*Loglevel) GetName

func (x *Loglevel) GetName() string

func (*Loglevel) ProtoMessage

func (*Loglevel) ProtoMessage()

func (*Loglevel) ProtoReflect

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

func (*Loglevel) Reset

func (x *Loglevel) Reset()

func (*Loglevel) String

func (x *Loglevel) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Lpr.ProtoReflect.Descriptor instead.

func (*Lpr) GetDescription

func (x *Lpr) GetDescription() string

func (*Lpr) GetId

func (x *Lpr) GetId() int32

func (*Lpr) GetIp

func (x *Lpr) GetIp() string

func (*Lpr) GetLicensePlate

func (x *Lpr) GetLicensePlate() string

func (*Lpr) GetName

func (x *Lpr) GetName() string

func (*Lpr) GetPort

func (x *Lpr) GetPort() int32

func (*Lpr) GetStatus

func (x *Lpr) GetStatus() bool

func (*Lpr) GetTime

func (x *Lpr) GetTime() string

func (*Lpr) ProtoMessage

func (*Lpr) ProtoMessage()

func (*Lpr) ProtoReflect

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

func (*Lpr) Reset

func (x *Lpr) Reset()

func (*Lpr) String

func (x *Lpr) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use LprFilter.ProtoReflect.Descriptor instead.

func (*LprFilter) GetAnd

func (x *LprFilter) GetAnd() []*LprFilter

func (*LprFilter) GetIdIn

func (x *LprFilter) GetIdIn() []uint32

func (*LprFilter) GetIpIn

func (x *LprFilter) GetIpIn() []string

func (*LprFilter) GetName

func (x *LprFilter) GetName() *wrappers.StringValue

func (*LprFilter) GetNameIn

func (x *LprFilter) GetNameIn() []string

func (*LprFilter) GetOr

func (x *LprFilter) GetOr() []*LprFilter

func (*LprFilter) GetPortIn

func (x *LprFilter) GetPortIn() []uint32

func (*LprFilter) ProtoMessage

func (*LprFilter) ProtoMessage()

func (*LprFilter) ProtoReflect

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

func (*LprFilter) Reset

func (x *LprFilter) Reset()

func (*LprFilter) String

func (x *LprFilter) String() string

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 LprService_LprsStreamService

type LprService_LprsStreamService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Recv() (*LprStreamResponse, error)
}

type LprService_LprsStreamStream

type LprService_LprsStreamStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*LprStreamResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Lprs.ProtoReflect.Descriptor instead.

func (*Lprs) GetCurrpages

func (x *Lprs) GetCurrpages() uint32

func (*Lprs) GetLprs

func (x *Lprs) GetLprs() []*Lpr

func (*Lprs) GetTotalpages

func (x *Lprs) GetTotalpages() uint32

func (*Lprs) GetTotals

func (x *Lprs) GetTotals() uint32

func (*Lprs) ProtoMessage

func (*Lprs) ProtoMessage()

func (*Lprs) ProtoReflect

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

func (*Lprs) Reset

func (x *Lprs) Reset()

func (*Lprs) String

func (x *Lprs) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetFilter

func (x *Query) GetFilter() *LprFilter

func (*Query) GetLimit

func (x *Query) GetLimit() uint32

func (*Query) GetOffset

func (x *Query) GetOffset() uint32

func (*Query) GetPage

func (x *Query) GetPage() uint32

func (*Query) GetPerPage

func (x *Query) GetPerPage() uint32

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetId

func (x *Response) GetId() int32

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

Jump to

Keyboard shortcuts

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