proto_pcounter

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 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 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"`
	Result               *PCounters           `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Retrieve) Descriptor added in v0.0.4

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

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) GetResult added in v0.0.4

func (m *Retrieve) GetResult() *PCounters

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_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

Jump to

Keyboard shortcuts

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