proto_pcounter

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

proto_pcounter

Protocol Buffer for People Counter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACounter added in v0.0.5

type ACounter struct {
	Ts                   *timestamp.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"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Area counter

func (*ACounter) Descriptor added in v0.0.5

func (*ACounter) Descriptor() ([]byte, []int)

func (*ACounter) GetAreaId added in v0.0.5

func (m *ACounter) GetAreaId() uint32

func (*ACounter) GetAreaName added in v0.0.5

func (m *ACounter) GetAreaName() string

func (*ACounter) GetCount added in v0.0.5

func (m *ACounter) GetCount() int32

func (*ACounter) GetTs added in v0.0.5

func (m *ACounter) GetTs() *timestamp.Timestamp

func (*ACounter) ProtoMessage added in v0.0.5

func (*ACounter) ProtoMessage()

func (*ACounter) Reset added in v0.0.5

func (m *ACounter) Reset()

func (*ACounter) String added in v0.0.5

func (m *ACounter) String() string

func (*ACounter) XXX_DiscardUnknown added in v0.0.5

func (m *ACounter) XXX_DiscardUnknown()

func (*ACounter) XXX_Marshal added in v0.0.5

func (m *ACounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ACounter) XXX_Merge added in v0.0.5

func (dst *ACounter) XXX_Merge(src proto.Message)

func (*ACounter) XXX_Size added in v0.0.5

func (m *ACounter) XXX_Size() int

func (*ACounter) XXX_Unmarshal added in v0.0.5

func (m *ACounter) XXX_Unmarshal(b []byte) error

type ACounters added in v0.0.5

type ACounters struct {
	Acs                  []*ACounter `protobuf:"bytes,1,rep,name=acs,proto3" json:"acs,omitempty"`
	IntervalSec          uint32      `protobuf:"varint,2,opt,name=intervalSec,proto3" json:"intervalSec,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ACounters) Descriptor added in v0.0.5

func (*ACounters) Descriptor() ([]byte, []int)

func (*ACounters) GetAcs added in v0.0.6

func (m *ACounters) GetAcs() []*ACounter

func (*ACounters) GetIntervalSec added in v0.0.5

func (m *ACounters) GetIntervalSec() uint32

func (*ACounters) ProtoMessage added in v0.0.5

func (*ACounters) ProtoMessage()

func (*ACounters) Reset added in v0.0.5

func (m *ACounters) Reset()

func (*ACounters) String added in v0.0.5

func (m *ACounters) String() string

func (*ACounters) XXX_DiscardUnknown added in v0.0.5

func (m *ACounters) XXX_DiscardUnknown()

func (*ACounters) XXX_Marshal added in v0.0.5

func (m *ACounters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ACounters) XXX_Merge added in v0.0.5

func (dst *ACounters) XXX_Merge(src proto.Message)

func (*ACounters) XXX_Size added in v0.0.5

func (m *ACounters) XXX_Size() int

func (*ACounters) XXX_Unmarshal added in v0.0.5

func (m *ACounters) XXX_Unmarshal(b []byte) error

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                   *timestamp.Timestamp `protobuf:"bytes,10,opt,name=ts,proto3" json:"ts,omitempty"`
	Data                 []*PEvent            `protobuf:"bytes,11,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

People Counter Service message

func (*PCounter) Descriptor

func (*PCounter) Descriptor() ([]byte, []int)

func (*PCounter) GetData

func (m *PCounter) GetData() []*PEvent

func (*PCounter) GetDeviceId

func (m *PCounter) GetDeviceId() string

func (*PCounter) GetHardware

func (m *PCounter) GetHardware() string

func (*PCounter) GetHostname

func (m *PCounter) GetHostname() string

func (*PCounter) GetIp added in v0.0.3

func (m *PCounter) GetIp() string

func (*PCounter) GetIpVpn added in v0.0.3

func (m *PCounter) GetIpVpn() string

func (*PCounter) GetLocation

func (m *PCounter) GetLocation() string

func (*PCounter) GetMac

func (m *PCounter) GetMac() string

func (*PCounter) GetProtocol

func (m *PCounter) GetProtocol() string

func (*PCounter) GetTimezone

func (m *PCounter) GetTimezone() string

func (*PCounter) GetTs

func (m *PCounter) GetTs() *timestamp.Timestamp

func (*PCounter) ProtoMessage

func (*PCounter) ProtoMessage()

func (*PCounter) Reset

func (m *PCounter) Reset()

func (*PCounter) String

func (m *PCounter) String() string

func (*PCounter) XXX_DiscardUnknown

func (m *PCounter) XXX_DiscardUnknown()

func (*PCounter) XXX_Marshal

func (m *PCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PCounter) XXX_Merge

func (dst *PCounter) XXX_Merge(src proto.Message)

func (*PCounter) XXX_Size

func (m *PCounter) XXX_Size() int

func (*PCounter) XXX_Unmarshal

func (m *PCounter) XXX_Unmarshal(b []byte) error

type PCounters added in v0.0.4

type PCounters struct {
	Pcs                  []*PCounter `protobuf:"bytes,1,rep,name=pcs,proto3" json:"pcs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*PCounters) Descriptor added in v0.0.4

func (*PCounters) Descriptor() ([]byte, []int)

func (*PCounters) GetPcs added in v0.0.4

func (m *PCounters) GetPcs() []*PCounter

func (*PCounters) ProtoMessage added in v0.0.4

func (*PCounters) ProtoMessage()

func (*PCounters) Reset added in v0.0.4

func (m *PCounters) Reset()

func (*PCounters) String added in v0.0.4

func (m *PCounters) String() string

func (*PCounters) XXX_DiscardUnknown added in v0.0.4

func (m *PCounters) XXX_DiscardUnknown()

func (*PCounters) XXX_Marshal added in v0.0.4

func (m *PCounters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PCounters) XXX_Merge added in v0.0.4

func (dst *PCounters) XXX_Merge(src proto.Message)

func (*PCounters) XXX_Size added in v0.0.4

func (m *PCounters) XXX_Size() int

func (*PCounters) XXX_Unmarshal added in v0.0.4

func (m *PCounters) XXX_Unmarshal(b []byte) error

type PEvent

type PEvent struct {
	Typ                  string               `protobuf:"bytes,1,opt,name=typ,proto3" json:"typ,omitempty"`
	Id                   string               `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Seq                  uint32               `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
	Height               uint32               `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	Dir                  string               `protobuf:"bytes,5,opt,name=dir,proto3" json:"dir,omitempty"`
	Ts                   *timestamp.Timestamp `protobuf:"bytes,6,opt,name=ts,proto3" json:"ts,omitempty"`
	TsExit               *timestamp.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"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PEvent) Descriptor

func (*PEvent) Descriptor() ([]byte, []int)

func (*PEvent) GetDir

func (m *PEvent) GetDir() string

func (*PEvent) GetDwellTime

func (m *PEvent) GetDwellTime() float32

func (*PEvent) GetExpDwellTime

func (m *PEvent) GetExpDwellTime() float32

func (*PEvent) GetFillLevel

func (m *PEvent) GetFillLevel() uint32

func (*PEvent) GetHeight

func (m *PEvent) GetHeight() uint32

func (*PEvent) GetId

func (m *PEvent) GetId() string

func (*PEvent) GetObjectId

func (m *PEvent) GetObjectId() uint32

func (*PEvent) GetSeq

func (m *PEvent) GetSeq() uint32

func (*PEvent) GetTs

func (m *PEvent) GetTs() *timestamp.Timestamp

func (*PEvent) GetTsExit

func (m *PEvent) GetTsExit() *timestamp.Timestamp

func (*PEvent) GetTyp

func (m *PEvent) GetTyp() string

func (*PEvent) ProtoMessage

func (*PEvent) ProtoMessage()

func (*PEvent) Reset

func (m *PEvent) Reset()

func (*PEvent) String

func (m *PEvent) String() string

func (*PEvent) XXX_DiscardUnknown

func (m *PEvent) XXX_DiscardUnknown()

func (*PEvent) XXX_Marshal

func (m *PEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PEvent) XXX_Merge

func (dst *PEvent) XXX_Merge(src proto.Message)

func (*PEvent) XXX_Size

func (m *PEvent) XXX_Size() int

func (*PEvent) XXX_Unmarshal

func (m *PEvent) XXX_Unmarshal(b []byte) error

type Retrieve added in v0.0.4

type Retrieve struct {
	From     *timestamp.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Duration *duration.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 valid to be assigned to Result:
	//	*Retrieve_PcRes
	//	*Retrieve_AcRes
	Result               isRetrieve_Result `protobuf_oneof:"result"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

retrieve message

func (*Retrieve) Descriptor added in v0.0.4

func (*Retrieve) Descriptor() ([]byte, []int)

func (*Retrieve) GetAcRes added in v0.0.5

func (m *Retrieve) GetAcRes() *ACounters

func (*Retrieve) GetDuration added in v0.0.4

func (m *Retrieve) GetDuration() *duration.Duration

func (*Retrieve) GetFrom added in v0.0.4

func (m *Retrieve) GetFrom() *timestamp.Timestamp

func (*Retrieve) GetPcRes added in v0.0.5

func (m *Retrieve) GetPcRes() *PCounters

func (*Retrieve) GetQuery added in v0.0.5

func (m *Retrieve) GetQuery() string

func (*Retrieve) GetResult added in v0.0.4

func (m *Retrieve) GetResult() isRetrieve_Result

func (*Retrieve) ProtoMessage added in v0.0.4

func (*Retrieve) ProtoMessage()

func (*Retrieve) Reset added in v0.0.4

func (m *Retrieve) Reset()

func (*Retrieve) String added in v0.0.4

func (m *Retrieve) String() string

func (*Retrieve) XXX_DiscardUnknown added in v0.0.4

func (m *Retrieve) XXX_DiscardUnknown()

func (*Retrieve) XXX_Marshal added in v0.0.4

func (m *Retrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Retrieve) XXX_Merge added in v0.0.4

func (dst *Retrieve) XXX_Merge(src proto.Message)

func (*Retrieve) XXX_OneofFuncs added in v0.0.5

func (*Retrieve) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Retrieve) XXX_Size added in v0.0.4

func (m *Retrieve) XXX_Size() int

func (*Retrieve) XXX_Unmarshal added in v0.0.4

func (m *Retrieve) XXX_Unmarshal(b []byte) error

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"`
}

Jump to

Keyboard shortcuts

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