Documentation ¶
Index ¶
- Variables
- type ACounter
- func (*ACounter) Descriptor() ([]byte, []int)deprecated
- func (x *ACounter) GetAreaId() uint32
- func (x *ACounter) GetAreaName() string
- func (x *ACounter) GetCount() int32
- func (x *ACounter) GetTs() *timestamppb.Timestamp
- func (*ACounter) ProtoMessage()
- func (x *ACounter) ProtoReflect() protoreflect.Message
- func (x *ACounter) Reset()
- func (x *ACounter) String() string
- type ACounters
- type PCounter
- func (*PCounter) Descriptor() ([]byte, []int)deprecated
- func (x *PCounter) GetData() []*PEvent
- func (x *PCounter) GetDeviceId() string
- func (x *PCounter) GetHardware() string
- func (x *PCounter) GetHostname() string
- func (x *PCounter) GetIp() string
- func (x *PCounter) GetIpVpn() string
- func (x *PCounter) GetLocation() string
- func (x *PCounter) GetMac() string
- func (x *PCounter) GetProtocol() string
- func (x *PCounter) GetTimezone() string
- func (x *PCounter) GetTs() *timestamppb.Timestamp
- func (*PCounter) ProtoMessage()
- func (x *PCounter) ProtoReflect() protoreflect.Message
- func (x *PCounter) Reset()
- func (x *PCounter) String() string
- type PCounters
- type PDetections
- func (*PDetections) Descriptor() ([]byte, []int)deprecated
- func (x *PDetections) GetHeight() uint32
- func (x *PDetections) GetTs() *timestamppb.Timestamp
- func (x *PDetections) GetX() int32
- func (x *PDetections) GetY() int32
- func (*PDetections) ProtoMessage()
- func (x *PDetections) ProtoReflect() protoreflect.Message
- func (x *PDetections) Reset()
- func (x *PDetections) String() string
- type PEvent
- func (*PEvent) Descriptor() ([]byte, []int)deprecated
- func (x *PEvent) GetDetections() []*PDetections
- func (x *PEvent) GetDir() string
- func (x *PEvent) GetDwellTime() float32
- func (x *PEvent) GetExpDwellTime() float32
- func (x *PEvent) GetFillLevel() uint32
- func (x *PEvent) GetHeight() float32
- func (x *PEvent) GetId() string
- func (x *PEvent) GetIsFinished() bool
- func (x *PEvent) GetObjectId() uint32
- func (x *PEvent) GetSeq() uint32
- func (x *PEvent) GetTs() *timestamppb.Timestamp
- func (x *PEvent) GetTsExit() *timestamppb.Timestamp
- func (x *PEvent) GetTyp() string
- func (x *PEvent) GetWalkSpeed() float32
- func (*PEvent) ProtoMessage()
- func (x *PEvent) ProtoReflect() protoreflect.Message
- func (x *PEvent) Reset()
- func (x *PEvent) String() string
- type Retrieve
- func (*Retrieve) Descriptor() ([]byte, []int)deprecated
- func (x *Retrieve) GetAcRes() *ACounters
- func (x *Retrieve) GetDuration() *durationpb.Duration
- func (x *Retrieve) GetFrom() *timestamppb.Timestamp
- func (x *Retrieve) GetPcRes() *PCounters
- func (x *Retrieve) GetQuery() string
- func (m *Retrieve) GetResult() isRetrieve_Result
- func (*Retrieve) ProtoMessage()
- func (x *Retrieve) ProtoReflect() protoreflect.Message
- func (x *Retrieve) Reset()
- func (x *Retrieve) String() string
- type Retrieve_AcRes
- type Retrieve_PcRes
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pcounter_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ACounter ¶ added in v0.0.5
type ACounter struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` AreaName string `protobuf:"bytes,2,opt,name=areaName,proto3" json:"areaName,omitempty"` AreaId uint32 `protobuf:"varint,3,opt,name=areaId,proto3" json:"areaId,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // current people number (reset required) // contains filtered or unexported fields }
Area counter
func (*ACounter) Descriptor
deprecated
added in
v0.0.5
func (*ACounter) GetAreaName ¶ added in v0.0.5
func (*ACounter) GetTs ¶ added in v0.0.5
func (x *ACounter) GetTs() *timestamppb.Timestamp
func (*ACounter) ProtoMessage ¶ added in v0.0.5
func (*ACounter) ProtoMessage()
func (*ACounter) ProtoReflect ¶ added in v0.0.8
func (x *ACounter) ProtoReflect() protoreflect.Message
type ACounters ¶ added in v0.0.5
type ACounters struct { Acs []*ACounter `protobuf:"bytes,1,rep,name=acs,proto3" json:"acs,omitempty"` // multiple counter data for fast transfer IntervalSec uint32 `protobuf:"varint,2,opt,name=intervalSec,proto3" json:"intervalSec,omitempty"` // 0 = raw, other = seconds of interval // contains filtered or unexported fields }
func (*ACounters) Descriptor
deprecated
added in
v0.0.5
func (*ACounters) GetIntervalSec ¶ added in v0.0.5
func (*ACounters) ProtoMessage ¶ added in v0.0.5
func (*ACounters) ProtoMessage()
func (*ACounters) ProtoReflect ¶ added in v0.0.8
func (x *ACounters) ProtoReflect() protoreflect.Message
type PCounter ¶
type PCounter struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` Timezone string `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty"` Mac string `protobuf:"bytes,5,opt,name=mac,proto3" json:"mac,omitempty"` Hardware string `protobuf:"bytes,6,opt,name=hardware,proto3" json:"hardware,omitempty"` Protocol string `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"` Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"` IpVpn string `protobuf:"bytes,9,opt,name=ip_vpn,json=ipVpn,proto3" json:"ip_vpn,omitempty"` Ts *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=ts,proto3" json:"ts,omitempty"` Data []*PEvent `protobuf:"bytes,11,rep,name=data,proto3" json:"data,omitempty"` // message has several event data. // contains filtered or unexported fields }
People Counter Service message
func (*PCounter) Descriptor
deprecated
func (*PCounter) GetDeviceId ¶
func (*PCounter) GetHardware ¶
func (*PCounter) GetHostname ¶
func (*PCounter) GetLocation ¶
func (*PCounter) GetProtocol ¶
func (*PCounter) GetTimezone ¶
func (*PCounter) GetTs ¶
func (x *PCounter) GetTs() *timestamppb.Timestamp
func (*PCounter) ProtoMessage ¶
func (*PCounter) ProtoMessage()
func (*PCounter) ProtoReflect ¶ added in v0.0.7
func (x *PCounter) ProtoReflect() protoreflect.Message
type PCounters ¶ added in v0.0.4
type PCounters struct { Pcs []*PCounter `protobuf:"bytes,1,rep,name=pcs,proto3" json:"pcs,omitempty"` // multiple counter data for fast transfer // contains filtered or unexported fields }
func (*PCounters) Descriptor
deprecated
added in
v0.0.4
func (*PCounters) ProtoMessage ¶ added in v0.0.4
func (*PCounters) ProtoMessage()
func (*PCounters) ProtoReflect ¶ added in v0.0.7
func (x *PCounters) ProtoReflect() protoreflect.Message
type PDetections ¶ added in v0.0.11
type PDetections struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Ts *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=ts,proto3" json:"ts,omitempty"` // contains filtered or unexported fields }
func (*PDetections) Descriptor
deprecated
added in
v0.0.11
func (*PDetections) Descriptor() ([]byte, []int)
Deprecated: Use PDetections.ProtoReflect.Descriptor instead.
func (*PDetections) GetHeight ¶ added in v0.0.11
func (x *PDetections) GetHeight() uint32
func (*PDetections) GetTs ¶ added in v0.0.11
func (x *PDetections) GetTs() *timestamppb.Timestamp
func (*PDetections) GetX ¶ added in v0.0.11
func (x *PDetections) GetX() int32
func (*PDetections) GetY ¶ added in v0.0.11
func (x *PDetections) GetY() int32
func (*PDetections) ProtoMessage ¶ added in v0.0.11
func (*PDetections) ProtoMessage()
func (*PDetections) ProtoReflect ¶ added in v0.0.11
func (x *PDetections) ProtoReflect() protoreflect.Message
func (*PDetections) Reset ¶ added in v0.0.11
func (x *PDetections) Reset()
func (*PDetections) String ¶ added in v0.0.11
func (x *PDetections) String() string
type PEvent ¶
type PEvent struct { Typ string `protobuf:"bytes,1,opt,name=typ,proto3" json:"typ,omitempty"` // one of "counter, fillLevel, dwellTime, tracking" Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Seq uint32 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` // sequence number (onr) Height float32 `protobuf:"fixed32,4,opt,name=height,proto3" json:"height,omitempty"` Dir string `protobuf:"bytes,5,opt,name=dir,proto3" json:"dir,omitempty"` // direction Ts *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=ts,proto3" json:"ts,omitempty"` TsExit *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=ts_exit,json=tsExit,proto3" json:"ts_exit,omitempty"` FillLevel uint32 `protobuf:"varint,8,opt,name=fillLevel,proto3" json:"fillLevel,omitempty"` DwellTime float32 `protobuf:"fixed32,9,opt,name=dwellTime,proto3" json:"dwellTime,omitempty"` ExpDwellTime float32 `protobuf:"fixed32,10,opt,name=expDwellTime,proto3" json:"expDwellTime,omitempty"` ObjectId uint32 `protobuf:"varint,11,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` WalkSpeed float32 `protobuf:"fixed32,12,opt,name=walk_speed,json=walkSpeed,proto3" json:"walk_speed,omitempty"` IsFinished bool `protobuf:"varint,13,opt,name=isFinished,proto3" json:"isFinished,omitempty"` Detections []*PDetections `protobuf:"bytes,14,rep,name=detections,proto3" json:"detections,omitempty"` // contains filtered or unexported fields }
func (*PEvent) Descriptor
deprecated
func (*PEvent) GetDetections ¶ added in v0.0.11
func (x *PEvent) GetDetections() []*PDetections
func (*PEvent) GetDwellTime ¶
func (*PEvent) GetExpDwellTime ¶
func (*PEvent) GetFillLevel ¶
func (*PEvent) GetIsFinished ¶ added in v0.0.11
func (*PEvent) GetObjectId ¶
func (*PEvent) GetTs ¶
func (x *PEvent) GetTs() *timestamppb.Timestamp
func (*PEvent) GetTsExit ¶
func (x *PEvent) GetTsExit() *timestamppb.Timestamp
func (*PEvent) GetWalkSpeed ¶ added in v0.0.7
func (*PEvent) ProtoMessage ¶
func (*PEvent) ProtoMessage()
func (*PEvent) ProtoReflect ¶ added in v0.0.7
func (x *PEvent) ProtoReflect() protoreflect.Message
type Retrieve ¶ added in v0.0.4
type Retrieve struct { From *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // Types that are assignable to Result: // *Retrieve_PcRes // *Retrieve_AcRes Result isRetrieve_Result `protobuf_oneof:"result"` // contains filtered or unexported fields }
retrieve message
func (*Retrieve) Descriptor
deprecated
added in
v0.0.4
func (*Retrieve) GetDuration ¶ added in v0.0.4
func (x *Retrieve) GetDuration() *durationpb.Duration
func (*Retrieve) GetFrom ¶ added in v0.0.4
func (x *Retrieve) GetFrom() *timestamppb.Timestamp
func (*Retrieve) ProtoMessage ¶ added in v0.0.4
func (*Retrieve) ProtoMessage()
func (*Retrieve) ProtoReflect ¶ added in v0.0.7
func (x *Retrieve) ProtoReflect() protoreflect.Message
type Retrieve_AcRes ¶ added in v0.0.5
type Retrieve_AcRes struct {
AcRes *ACounters `protobuf:"bytes,5,opt,name=ac_res,json=acRes,proto3,oneof"`
}
type Retrieve_PcRes ¶ added in v0.0.5
type Retrieve_PcRes struct {
PcRes *PCounters `protobuf:"bytes,4,opt,name=pc_res,json=pcRes,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.