proto

package
v0.0.0-...-cc2d835 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: MIT Imports: 9 Imported by: 2

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

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

func (*BoolPoint) GetValue

func (m *BoolPoint) GetValue() bool

func (*BoolPoint) ProtoMessage

func (*BoolPoint) ProtoMessage()

func (*BoolPoint) Reset

func (m *BoolPoint) Reset()

func (*BoolPoint) String

func (m *BoolPoint) String() string

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

func (*GroupId) GetEnd

func (m *GroupId) GetEnd() *google_protobuf1.Timestamp

func (*GroupId) GetGroupId

func (m *GroupId) GetGroupId() string

func (*GroupId) GetStart

func (m *GroupId) GetStart() *google_protobuf1.Timestamp

func (*GroupId) GetUser

func (m *GroupId) GetUser() string

func (*GroupId) ProtoMessage

func (*GroupId) ProtoMessage()

func (*GroupId) Reset

func (m *GroupId) Reset()

func (*GroupId) String

func (m *GroupId) String() string

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

func (*Point) GetDateCreation

func (m *Point) GetDateCreation() *google_protobuf1.Timestamp

func (*Point) GetFields

func (m *Point) GetFields() map[string]*google_protobuf3.Any

func (*Point) GetTags

func (m *Point) GetTags() map[string]string

func (*Point) GetUser

func (m *Point) GetUser() string

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) Reset

func (m *Point) Reset()

func (*Point) String

func (m *Point) String() string

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 PointSvcServer interface {
	CreatePoint(context.Context, *Point) (*google_protobuf.Empty, error)
	GetPointsByThing(context.Context, *ThingId) (*InfluxResult, error)
	GetPointsByGroup(context.Context, *GroupId) (*InfluxResult, error)
}

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

func (*ThingId) GetEnd

func (m *ThingId) GetEnd() *google_protobuf1.Timestamp

func (*ThingId) GetStart

func (m *ThingId) GetStart() *google_protobuf1.Timestamp

func (*ThingId) GetThingId

func (m *ThingId) GetThingId() string

func (*ThingId) GetUser

func (m *ThingId) GetUser() string

func (*ThingId) ProtoMessage

func (*ThingId) ProtoMessage()

func (*ThingId) Reset

func (m *ThingId) Reset()

func (*ThingId) String

func (m *ThingId) String() string

Jump to

Keyboard shortcuts

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