Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
point.proto
It has these top-level messages:
InfluxResult Point ThingId GroupId StringPoint FloatPoint IntegerPoint DurationPoint DateTimePoint BoolPoint
Index ¶
- func RegisterPointSvcServer(s *grpc.Server, srv PointSvcServer)
- type BoolPoint
- type DateTimePoint
- type DurationPoint
- type FloatPoint
- type GroupId
- func (*GroupId) Descriptor() ([]byte, []int)
- func (m *GroupId) GetEnd() *google_protobuf1.Timestamp
- func (m *GroupId) GetGroupId() string
- func (m *GroupId) GetStart() *google_protobuf1.Timestamp
- func (m *GroupId) GetUser() string
- func (*GroupId) ProtoMessage()
- func (m *GroupId) Reset()
- func (m *GroupId) String() string
- type InfluxResult
- type IntegerPoint
- type Point
- func (*Point) Descriptor() ([]byte, []int)
- func (m *Point) GetDateCreation() *google_protobuf1.Timestamp
- func (m *Point) GetFields() map[string]*google_protobuf3.Any
- func (m *Point) GetTags() map[string]string
- func (m *Point) GetUser() string
- func (*Point) ProtoMessage()
- func (m *Point) Reset()
- func (m *Point) String() string
- type PointSvcClient
- type PointSvcServer
- type StringPoint
- type ThingId
- func (*ThingId) Descriptor() ([]byte, []int)
- func (m *ThingId) GetEnd() *google_protobuf1.Timestamp
- func (m *ThingId) GetStart() *google_protobuf1.Timestamp
- func (m *ThingId) GetThingId() string
- func (m *ThingId) GetUser() string
- func (*ThingId) ProtoMessage()
- func (m *ThingId) Reset()
- func (m *ThingId) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPointSvcServer ¶
func RegisterPointSvcServer(s *grpc.Server, srv PointSvcServer)
Types ¶
type BoolPoint ¶
type BoolPoint struct {
Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}
func (*BoolPoint) Descriptor ¶
func (*BoolPoint) ProtoMessage ¶
func (*BoolPoint) ProtoMessage()
type DateTimePoint ¶
type DateTimePoint struct {
Value *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}
func (*DateTimePoint) Descriptor ¶
func (*DateTimePoint) Descriptor() ([]byte, []int)
func (*DateTimePoint) GetValue ¶
func (m *DateTimePoint) GetValue() *google_protobuf1.Timestamp
func (*DateTimePoint) ProtoMessage ¶
func (*DateTimePoint) ProtoMessage()
func (*DateTimePoint) Reset ¶
func (m *DateTimePoint) Reset()
func (*DateTimePoint) String ¶
func (m *DateTimePoint) String() string
type DurationPoint ¶
type DurationPoint struct {
Value *google_protobuf2.Duration `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}
func (*DurationPoint) Descriptor ¶
func (*DurationPoint) Descriptor() ([]byte, []int)
func (*DurationPoint) GetValue ¶
func (m *DurationPoint) GetValue() *google_protobuf2.Duration
func (*DurationPoint) ProtoMessage ¶
func (*DurationPoint) ProtoMessage()
func (*DurationPoint) Reset ¶
func (m *DurationPoint) Reset()
func (*DurationPoint) String ¶
func (m *DurationPoint) String() string
type FloatPoint ¶
type FloatPoint struct {
Value float32 `protobuf:"fixed32,1,opt,name=value" json:"value,omitempty"`
}
func (*FloatPoint) Descriptor ¶
func (*FloatPoint) Descriptor() ([]byte, []int)
func (*FloatPoint) GetValue ¶
func (m *FloatPoint) GetValue() float32
func (*FloatPoint) ProtoMessage ¶
func (*FloatPoint) ProtoMessage()
func (*FloatPoint) Reset ¶
func (m *FloatPoint) Reset()
func (*FloatPoint) String ¶
func (m *FloatPoint) String() string
type GroupId ¶
type GroupId struct { User string `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=groupId" json:"groupId,omitempty"` Start *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=start" json:"start,omitempty"` End *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=end" json:"end,omitempty"` }
func (*GroupId) Descriptor ¶
func (*GroupId) GetEnd ¶
func (m *GroupId) GetEnd() *google_protobuf1.Timestamp
func (*GroupId) GetGroupId ¶
func (*GroupId) GetStart ¶
func (m *GroupId) GetStart() *google_protobuf1.Timestamp
func (*GroupId) ProtoMessage ¶
func (*GroupId) ProtoMessage()
type InfluxResult ¶
type InfluxResult struct {
Item []byte `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
}
func (*InfluxResult) Descriptor ¶
func (*InfluxResult) Descriptor() ([]byte, []int)
func (*InfluxResult) GetItem ¶
func (m *InfluxResult) GetItem() []byte
func (*InfluxResult) ProtoMessage ¶
func (*InfluxResult) ProtoMessage()
func (*InfluxResult) Reset ¶
func (m *InfluxResult) Reset()
func (*InfluxResult) String ¶
func (m *InfluxResult) String() string
type IntegerPoint ¶
type IntegerPoint struct {
Value int32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}
func (*IntegerPoint) Descriptor ¶
func (*IntegerPoint) Descriptor() ([]byte, []int)
func (*IntegerPoint) GetValue ¶
func (m *IntegerPoint) GetValue() int32
func (*IntegerPoint) ProtoMessage ¶
func (*IntegerPoint) ProtoMessage()
func (*IntegerPoint) Reset ¶
func (m *IntegerPoint) Reset()
func (*IntegerPoint) String ¶
func (m *IntegerPoint) String() string
type Point ¶
type Point struct { User string `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` Tags map[string]string `` /* 128-byte string literal not displayed */ Fields map[string]*google_protobuf3.Any `` /* 132-byte string literal not displayed */ DateCreation *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=dateCreation" json:"dateCreation,omitempty"` }
func (*Point) Descriptor ¶
func (*Point) GetDateCreation ¶
func (m *Point) GetDateCreation() *google_protobuf1.Timestamp
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
type PointSvcClient ¶
type PointSvcClient interface { CreatePoint(ctx context.Context, in *Point, opts ...grpc.CallOption) (*google_protobuf.Empty, error) GetPointsByThing(ctx context.Context, in *ThingId, opts ...grpc.CallOption) (*InfluxResult, error) GetPointsByGroup(ctx context.Context, in *GroupId, opts ...grpc.CallOption) (*InfluxResult, error) }
func NewPointSvcClient ¶
func NewPointSvcClient(cc *grpc.ClientConn) PointSvcClient
type PointSvcServer ¶
type StringPoint ¶
type StringPoint struct {
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}
func (*StringPoint) Descriptor ¶
func (*StringPoint) Descriptor() ([]byte, []int)
func (*StringPoint) GetValue ¶
func (m *StringPoint) GetValue() string
func (*StringPoint) ProtoMessage ¶
func (*StringPoint) ProtoMessage()
func (*StringPoint) Reset ¶
func (m *StringPoint) Reset()
func (*StringPoint) String ¶
func (m *StringPoint) String() string
type ThingId ¶
type ThingId struct { User string `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` ThingId string `protobuf:"bytes,2,opt,name=thingId" json:"thingId,omitempty"` Start *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=start" json:"start,omitempty"` End *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=end" json:"end,omitempty"` }
func (*ThingId) Descriptor ¶
func (*ThingId) GetEnd ¶
func (m *ThingId) GetEnd() *google_protobuf1.Timestamp
func (*ThingId) GetStart ¶
func (m *ThingId) GetStart() *google_protobuf1.Timestamp
func (*ThingId) GetThingId ¶
func (*ThingId) ProtoMessage ¶
func (*ThingId) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.