grpc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package grpc is a generated protocol buffer package.

It is generated from these files:

rpc.proto

It has these top-level messages:

Error
PingReq
PingRes
WritePointsReq
WritePointsRes
WriteSeriesReq
WriteSeriesRes
PrepareSeriesReq
PrepareSeriesRes
PreparedPointInt
PreparedPointDouble
WritePreparedPointsReq
WritePreparedPointsRes
WritePreparedSeriesReq
WritePreparedSeriesRes
WritePreparedSeriesColumnarReq
WritePreparedSeriesColumnarRes

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRpc   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterXephonkServer

func RegisterXephonkServer(s *grpc1.Server, srv XephonkServer)

Types

type Error

type Error struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}

func (*Error) Descriptor

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

func (*Error) Marshal

func (m *Error) Marshal() (dAtA []byte, err error)

func (*Error) MarshalTo

func (m *Error) MarshalTo(dAtA []byte) (int, error)

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) Size

func (m *Error) Size() (n int)

func (*Error) String

func (m *Error) String() string

func (*Error) Unmarshal

func (m *Error) Unmarshal(dAtA []byte) error

type PingReq

type PingReq struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}

func (*PingReq) Descriptor

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

func (*PingReq) Marshal

func (m *PingReq) Marshal() (dAtA []byte, err error)

func (*PingReq) MarshalTo

func (m *PingReq) MarshalTo(dAtA []byte) (int, error)

func (*PingReq) ProtoMessage

func (*PingReq) ProtoMessage()

func (*PingReq) Reset

func (m *PingReq) Reset()

func (*PingReq) Size

func (m *PingReq) Size() (n int)

func (*PingReq) String

func (m *PingReq) String() string

func (*PingReq) Unmarshal

func (m *PingReq) Unmarshal(dAtA []byte) error

type PingRes

type PingRes struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}

func (*PingRes) Descriptor

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

func (*PingRes) Marshal

func (m *PingRes) Marshal() (dAtA []byte, err error)

func (*PingRes) MarshalTo

func (m *PingRes) MarshalTo(dAtA []byte) (int, error)

func (*PingRes) ProtoMessage

func (*PingRes) ProtoMessage()

func (*PingRes) Reset

func (m *PingRes) Reset()

func (*PingRes) Size

func (m *PingRes) Size() (n int)

func (*PingRes) String

func (m *PingRes) String() string

func (*PingRes) Unmarshal

func (m *PingRes) Unmarshal(dAtA []byte) error

type PrepareSeriesReq

type PrepareSeriesReq struct {
	Series []libtsdb.EmptySeries `protobuf:"bytes,1,rep,name=series" json:"series"`
}

prepare

func (*PrepareSeriesReq) Descriptor

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

func (*PrepareSeriesReq) Marshal

func (m *PrepareSeriesReq) Marshal() (dAtA []byte, err error)

func (*PrepareSeriesReq) MarshalTo

func (m *PrepareSeriesReq) MarshalTo(dAtA []byte) (int, error)

func (*PrepareSeriesReq) ProtoMessage

func (*PrepareSeriesReq) ProtoMessage()

func (*PrepareSeriesReq) Reset

func (m *PrepareSeriesReq) Reset()

func (*PrepareSeriesReq) Size

func (m *PrepareSeriesReq) Size() (n int)

func (*PrepareSeriesReq) String

func (m *PrepareSeriesReq) String() string

func (*PrepareSeriesReq) Unmarshal

func (m *PrepareSeriesReq) Unmarshal(dAtA []byte) error

type PrepareSeriesRes

type PrepareSeriesRes struct {
	Series []uint64 `protobuf:"varint,1,rep,packed,name=series" json:"series,omitempty"`
}

func (*PrepareSeriesRes) Descriptor

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

func (*PrepareSeriesRes) Marshal

func (m *PrepareSeriesRes) Marshal() (dAtA []byte, err error)

func (*PrepareSeriesRes) MarshalTo

func (m *PrepareSeriesRes) MarshalTo(dAtA []byte) (int, error)

func (*PrepareSeriesRes) ProtoMessage

func (*PrepareSeriesRes) ProtoMessage()

func (*PrepareSeriesRes) Reset

func (m *PrepareSeriesRes) Reset()

func (*PrepareSeriesRes) Size

func (m *PrepareSeriesRes) Size() (n int)

func (*PrepareSeriesRes) String

func (m *PrepareSeriesRes) String() string

func (*PrepareSeriesRes) Unmarshal

func (m *PrepareSeriesRes) Unmarshal(dAtA []byte) error

type PreparedPointDouble

type PreparedPointDouble struct {
	Id uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	T  int64   `protobuf:"varint,2,opt,name=T,proto3" json:"T,omitempty"`
	V  float64 `protobuf:"fixed64,3,opt,name=V,proto3" json:"V,omitempty"`
}

func (*PreparedPointDouble) Descriptor

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

func (*PreparedPointDouble) Marshal

func (m *PreparedPointDouble) Marshal() (dAtA []byte, err error)

func (*PreparedPointDouble) MarshalTo

func (m *PreparedPointDouble) MarshalTo(dAtA []byte) (int, error)

func (*PreparedPointDouble) ProtoMessage

func (*PreparedPointDouble) ProtoMessage()

func (*PreparedPointDouble) Reset

func (m *PreparedPointDouble) Reset()

func (*PreparedPointDouble) Size

func (m *PreparedPointDouble) Size() (n int)

func (*PreparedPointDouble) String

func (m *PreparedPointDouble) String() string

func (*PreparedPointDouble) Unmarshal

func (m *PreparedPointDouble) Unmarshal(dAtA []byte) error

type PreparedPointInt

type PreparedPointInt struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	T  int64  `protobuf:"varint,2,opt,name=T,proto3" json:"T,omitempty"`
	V  int64  `protobuf:"varint,3,opt,name=V,proto3" json:"V,omitempty"`
}

func (*PreparedPointInt) Descriptor

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

func (*PreparedPointInt) Marshal

func (m *PreparedPointInt) Marshal() (dAtA []byte, err error)

func (*PreparedPointInt) MarshalTo

func (m *PreparedPointInt) MarshalTo(dAtA []byte) (int, error)

func (*PreparedPointInt) ProtoMessage

func (*PreparedPointInt) ProtoMessage()

func (*PreparedPointInt) Reset

func (m *PreparedPointInt) Reset()

func (*PreparedPointInt) Size

func (m *PreparedPointInt) Size() (n int)

func (*PreparedPointInt) String

func (m *PreparedPointInt) String() string

func (*PreparedPointInt) Unmarshal

func (m *PreparedPointInt) Unmarshal(dAtA []byte) error

type WritePointsReq

type WritePointsReq struct {
	Int    []libtsdb.PointIntTagged    `protobuf:"bytes,1,rep,name=int" json:"int"`
	Double []libtsdb.PointDoubleTagged `protobuf:"bytes,2,rep,name=double" json:"double"`
}

raw, no prepare

func (*WritePointsReq) Descriptor

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

func (*WritePointsReq) Marshal

func (m *WritePointsReq) Marshal() (dAtA []byte, err error)

func (*WritePointsReq) MarshalTo

func (m *WritePointsReq) MarshalTo(dAtA []byte) (int, error)

func (*WritePointsReq) ProtoMessage

func (*WritePointsReq) ProtoMessage()

func (*WritePointsReq) Reset

func (m *WritePointsReq) Reset()

func (*WritePointsReq) Size

func (m *WritePointsReq) Size() (n int)

func (*WritePointsReq) String

func (m *WritePointsReq) String() string

func (*WritePointsReq) Unmarshal

func (m *WritePointsReq) Unmarshal(dAtA []byte) error

type WritePointsRes

type WritePointsRes struct {
	Error *Error `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
}

func (*WritePointsRes) Descriptor

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

func (*WritePointsRes) Marshal

func (m *WritePointsRes) Marshal() (dAtA []byte, err error)

func (*WritePointsRes) MarshalTo

func (m *WritePointsRes) MarshalTo(dAtA []byte) (int, error)

func (*WritePointsRes) ProtoMessage

func (*WritePointsRes) ProtoMessage()

func (*WritePointsRes) Reset

func (m *WritePointsRes) Reset()

func (*WritePointsRes) Size

func (m *WritePointsRes) Size() (n int)

func (*WritePointsRes) String

func (m *WritePointsRes) String() string

func (*WritePointsRes) Unmarshal

func (m *WritePointsRes) Unmarshal(dAtA []byte) error

type WritePreparedPointsReq

type WritePreparedPointsReq struct {
	Int    []PreparedPointInt    `protobuf:"bytes,1,rep,name=int" json:"int"`
	Double []PreparedPointDouble `protobuf:"bytes,2,rep,name=double" json:"double"`
}

func (*WritePreparedPointsReq) Descriptor

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

func (*WritePreparedPointsReq) Marshal

func (m *WritePreparedPointsReq) Marshal() (dAtA []byte, err error)

func (*WritePreparedPointsReq) MarshalTo

func (m *WritePreparedPointsReq) MarshalTo(dAtA []byte) (int, error)

func (*WritePreparedPointsReq) ProtoMessage

func (*WritePreparedPointsReq) ProtoMessage()

func (*WritePreparedPointsReq) Reset

func (m *WritePreparedPointsReq) Reset()

func (*WritePreparedPointsReq) Size

func (m *WritePreparedPointsReq) Size() (n int)

func (*WritePreparedPointsReq) String

func (m *WritePreparedPointsReq) String() string

func (*WritePreparedPointsReq) Unmarshal

func (m *WritePreparedPointsReq) Unmarshal(dAtA []byte) error

type WritePreparedPointsRes

type WritePreparedPointsRes struct {
	Error Error `protobuf:"bytes,1,opt,name=error" json:"error"`
}

func (*WritePreparedPointsRes) Descriptor

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

func (*WritePreparedPointsRes) Marshal

func (m *WritePreparedPointsRes) Marshal() (dAtA []byte, err error)

func (*WritePreparedPointsRes) MarshalTo

func (m *WritePreparedPointsRes) MarshalTo(dAtA []byte) (int, error)

func (*WritePreparedPointsRes) ProtoMessage

func (*WritePreparedPointsRes) ProtoMessage()

func (*WritePreparedPointsRes) Reset

func (m *WritePreparedPointsRes) Reset()

func (*WritePreparedPointsRes) Size

func (m *WritePreparedPointsRes) Size() (n int)

func (*WritePreparedPointsRes) String

func (m *WritePreparedPointsRes) String() string

func (*WritePreparedPointsRes) Unmarshal

func (m *WritePreparedPointsRes) Unmarshal(dAtA []byte) error

type WritePreparedSeriesColumnarReq

type WritePreparedSeriesColumnarReq struct {
}

func (*WritePreparedSeriesColumnarReq) Descriptor

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

func (*WritePreparedSeriesColumnarReq) Marshal

func (m *WritePreparedSeriesColumnarReq) Marshal() (dAtA []byte, err error)

func (*WritePreparedSeriesColumnarReq) MarshalTo

func (m *WritePreparedSeriesColumnarReq) MarshalTo(dAtA []byte) (int, error)

func (*WritePreparedSeriesColumnarReq) ProtoMessage

func (*WritePreparedSeriesColumnarReq) ProtoMessage()

func (*WritePreparedSeriesColumnarReq) Reset

func (m *WritePreparedSeriesColumnarReq) Reset()

func (*WritePreparedSeriesColumnarReq) Size

func (m *WritePreparedSeriesColumnarReq) Size() (n int)

func (*WritePreparedSeriesColumnarReq) String

func (*WritePreparedSeriesColumnarReq) Unmarshal

func (m *WritePreparedSeriesColumnarReq) Unmarshal(dAtA []byte) error

type WritePreparedSeriesColumnarRes

type WritePreparedSeriesColumnarRes struct {
	Error Error `protobuf:"bytes,1,opt,name=error" json:"error"`
}

func (*WritePreparedSeriesColumnarRes) Descriptor

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

func (*WritePreparedSeriesColumnarRes) Marshal

func (m *WritePreparedSeriesColumnarRes) Marshal() (dAtA []byte, err error)

func (*WritePreparedSeriesColumnarRes) MarshalTo

func (m *WritePreparedSeriesColumnarRes) MarshalTo(dAtA []byte) (int, error)

func (*WritePreparedSeriesColumnarRes) ProtoMessage

func (*WritePreparedSeriesColumnarRes) ProtoMessage()

func (*WritePreparedSeriesColumnarRes) Reset

func (m *WritePreparedSeriesColumnarRes) Reset()

func (*WritePreparedSeriesColumnarRes) Size

func (m *WritePreparedSeriesColumnarRes) Size() (n int)

func (*WritePreparedSeriesColumnarRes) String

func (*WritePreparedSeriesColumnarRes) Unmarshal

func (m *WritePreparedSeriesColumnarRes) Unmarshal(dAtA []byte) error

type WritePreparedSeriesReq

type WritePreparedSeriesReq struct {
}

func (*WritePreparedSeriesReq) Descriptor

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

func (*WritePreparedSeriesReq) Marshal

func (m *WritePreparedSeriesReq) Marshal() (dAtA []byte, err error)

func (*WritePreparedSeriesReq) MarshalTo

func (m *WritePreparedSeriesReq) MarshalTo(dAtA []byte) (int, error)

func (*WritePreparedSeriesReq) ProtoMessage

func (*WritePreparedSeriesReq) ProtoMessage()

func (*WritePreparedSeriesReq) Reset

func (m *WritePreparedSeriesReq) Reset()

func (*WritePreparedSeriesReq) Size

func (m *WritePreparedSeriesReq) Size() (n int)

func (*WritePreparedSeriesReq) String

func (m *WritePreparedSeriesReq) String() string

func (*WritePreparedSeriesReq) Unmarshal

func (m *WritePreparedSeriesReq) Unmarshal(dAtA []byte) error

type WritePreparedSeriesRes

type WritePreparedSeriesRes struct {
	Error Error `protobuf:"bytes,1,opt,name=error" json:"error"`
}

func (*WritePreparedSeriesRes) Descriptor

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

func (*WritePreparedSeriesRes) Marshal

func (m *WritePreparedSeriesRes) Marshal() (dAtA []byte, err error)

func (*WritePreparedSeriesRes) MarshalTo

func (m *WritePreparedSeriesRes) MarshalTo(dAtA []byte) (int, error)

func (*WritePreparedSeriesRes) ProtoMessage

func (*WritePreparedSeriesRes) ProtoMessage()

func (*WritePreparedSeriesRes) Reset

func (m *WritePreparedSeriesRes) Reset()

func (*WritePreparedSeriesRes) Size

func (m *WritePreparedSeriesRes) Size() (n int)

func (*WritePreparedSeriesRes) String

func (m *WritePreparedSeriesRes) String() string

func (*WritePreparedSeriesRes) Unmarshal

func (m *WritePreparedSeriesRes) Unmarshal(dAtA []byte) error

type WriteSeriesReq

type WriteSeriesReq struct {
	Int    []libtsdb.SeriesIntTagged    `protobuf:"bytes,1,rep,name=int" json:"int"`
	Double []libtsdb.SeriesDoubleTagged `protobuf:"bytes,2,rep,name=double" json:"double"`
}

func (*WriteSeriesReq) Descriptor

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

func (*WriteSeriesReq) Marshal

func (m *WriteSeriesReq) Marshal() (dAtA []byte, err error)

func (*WriteSeriesReq) MarshalTo

func (m *WriteSeriesReq) MarshalTo(dAtA []byte) (int, error)

func (*WriteSeriesReq) ProtoMessage

func (*WriteSeriesReq) ProtoMessage()

func (*WriteSeriesReq) Reset

func (m *WriteSeriesReq) Reset()

func (*WriteSeriesReq) Size

func (m *WriteSeriesReq) Size() (n int)

func (*WriteSeriesReq) String

func (m *WriteSeriesReq) String() string

func (*WriteSeriesReq) Unmarshal

func (m *WriteSeriesReq) Unmarshal(dAtA []byte) error

type WriteSeriesRes

type WriteSeriesRes struct {
	Error Error `protobuf:"bytes,1,opt,name=error" json:"error"`
}

func (*WriteSeriesRes) Descriptor

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

func (*WriteSeriesRes) Marshal

func (m *WriteSeriesRes) Marshal() (dAtA []byte, err error)

func (*WriteSeriesRes) MarshalTo

func (m *WriteSeriesRes) MarshalTo(dAtA []byte) (int, error)

func (*WriteSeriesRes) ProtoMessage

func (*WriteSeriesRes) ProtoMessage()

func (*WriteSeriesRes) Reset

func (m *WriteSeriesRes) Reset()

func (*WriteSeriesRes) Size

func (m *WriteSeriesRes) Size() (n int)

func (*WriteSeriesRes) String

func (m *WriteSeriesRes) String() string

func (*WriteSeriesRes) Unmarshal

func (m *WriteSeriesRes) Unmarshal(dAtA []byte) error

type XephonkClient

type XephonkClient interface {
	Ping(ctx context.Context, in *PingReq, opts ...grpc1.CallOption) (*PingRes, error)
	// WritePoints is the most verbose one, but requires least effort on client side, just stream in point with tag
	WritePoints(ctx context.Context, in *WritePointsReq, opts ...grpc1.CallOption) (*WritePointsRes, error)
	// WriteSereis groups points of same series together to reduce cost of duplicating meta
	WriteSeries(ctx context.Context, in *WriteSeriesReq, opts ...grpc1.CallOption) (*WriteSeriesRes, error)
	// PrepareSeries gives each series a unique id, that can be used in this connection to omit passing full meta
	PrepareSeries(ctx context.Context, in *PrepareSeriesReq, opts ...grpc1.CallOption) (*PrepareSeriesRes, error)
	// WritePreparedPoints don't group points by series, but only prepared id is needed, not need to pass full meta
	WritePreparedPoints(ctx context.Context, in *WritePreparedPointsReq, opts ...grpc1.CallOption) (*WritePreparedPointsRes, error)
	// WritePreparedSeries not only use id for series, but also group points by series
	WritePreparedSeries(ctx context.Context, in *WritePreparedSeriesReq, opts ...grpc1.CallOption) (*WritePreparedSeriesRes, error)
	// WritePreparedSeriesColumnar use columnar format so points in one series can be compressed by protobuf
	WritePreparedSeriesColumnar(ctx context.Context, in *WritePreparedSeriesColumnarReq, opts ...grpc1.CallOption) (*WritePreparedSeriesColumnarRes, error)
}

func NewClient

func NewClient(conn *grpc.ClientConn) XephonkClient

func NewXephonkClient

func NewXephonkClient(cc *grpc1.ClientConn) XephonkClient

type XephonkServer

type XephonkServer interface {
	Ping(context.Context, *PingReq) (*PingRes, error)
	// WritePoints is the most verbose one, but requires least effort on client side, just stream in point with tag
	WritePoints(context.Context, *WritePointsReq) (*WritePointsRes, error)
	// WriteSereis groups points of same series together to reduce cost of duplicating meta
	WriteSeries(context.Context, *WriteSeriesReq) (*WriteSeriesRes, error)
	// PrepareSeries gives each series a unique id, that can be used in this connection to omit passing full meta
	PrepareSeries(context.Context, *PrepareSeriesReq) (*PrepareSeriesRes, error)
	// WritePreparedPoints don't group points by series, but only prepared id is needed, not need to pass full meta
	WritePreparedPoints(context.Context, *WritePreparedPointsReq) (*WritePreparedPointsRes, error)
	// WritePreparedSeries not only use id for series, but also group points by series
	WritePreparedSeries(context.Context, *WritePreparedSeriesReq) (*WritePreparedSeriesRes, error)
	// WritePreparedSeriesColumnar use columnar format so points in one series can be compressed by protobuf
	WritePreparedSeriesColumnar(context.Context, *WritePreparedSeriesColumnarReq) (*WritePreparedSeriesColumnarRes, error)
}

Source Files

  • client.go
  • gommon_generated.go
  • rpc.pb.go

Jump to

Keyboard shortcuts

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