Documentation ¶
Overview ¶
Package binary is a generated protocol buffer package.
It is generated from these files:
binary.proto
It has these top-level messages:
Header BucketHeader BucketFooter FloatPoints IntegerPoints UnsignedPoints BooleanPoints StringPoints SeriesHeader SeriesFooter
Index ¶
- Variables
- type BooleanPoints
- func (*BooleanPoints) Descriptor() ([]byte, []int)
- func (m *BooleanPoints) Marshal() (dAtA []byte, err error)
- func (m *BooleanPoints) MarshalTo(dAtA []byte) (int, error)
- func (*BooleanPoints) ProtoMessage()
- func (m *BooleanPoints) Reset()
- func (m *BooleanPoints) Size() (n int)
- func (m *BooleanPoints) String() string
- func (m *BooleanPoints) Unmarshal(dAtA []byte) error
- type BucketFooter
- func (*BucketFooter) Descriptor() ([]byte, []int)
- func (m *BucketFooter) Marshal() (dAtA []byte, err error)
- func (m *BucketFooter) MarshalTo(dAtA []byte) (int, error)
- func (*BucketFooter) ProtoMessage()
- func (m *BucketFooter) Reset()
- func (m *BucketFooter) Size() (n int)
- func (m *BucketFooter) String() string
- func (m *BucketFooter) Unmarshal(dAtA []byte) error
- type BucketHeader
- func (*BucketHeader) Descriptor() ([]byte, []int)
- func (m *BucketHeader) Marshal() (dAtA []byte, err error)
- func (m *BucketHeader) MarshalTo(dAtA []byte) (int, error)
- func (*BucketHeader) ProtoMessage()
- func (m *BucketHeader) Reset()
- func (m *BucketHeader) Size() (n int)
- func (m *BucketHeader) String() string
- func (m *BucketHeader) Unmarshal(dAtA []byte) error
- type BucketWriter
- func (bw *BucketWriter) BeginSeries(name, field []byte, typ influxql.DataType, tags models.Tags)
- func (bw *BucketWriter) Close() error
- func (bw *BucketWriter) EndSeries()
- func (bw *BucketWriter) Err() error
- func (bw *BucketWriter) WriteBooleanCursor(cur tsdb.BooleanArrayCursor)
- func (bw *BucketWriter) WriteFloatCursor(cur tsdb.FloatArrayCursor)
- func (bw *BucketWriter) WriteIntegerCursor(cur tsdb.IntegerArrayCursor)
- func (bw *BucketWriter) WriteSeries(name []byte, field []byte, fieldType influxql.DataType, tags models.Tags, ...) error
- func (bw *BucketWriter) WriteStringCursor(cur tsdb.StringArrayCursor)
- func (bw *BucketWriter) WriteUnsignedCursor(cur tsdb.UnsignedArrayCursor)
- type FieldType
- type FloatPoints
- func (*FloatPoints) Descriptor() ([]byte, []int)
- func (m *FloatPoints) Marshal() (dAtA []byte, err error)
- func (m *FloatPoints) MarshalTo(dAtA []byte) (int, error)
- func (*FloatPoints) ProtoMessage()
- func (m *FloatPoints) Reset()
- func (m *FloatPoints) Size() (n int)
- func (m *FloatPoints) String() string
- func (m *FloatPoints) Unmarshal(dAtA []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- type Header_Version
- type IntegerPoints
- func (*IntegerPoints) Descriptor() ([]byte, []int)
- func (m *IntegerPoints) Marshal() (dAtA []byte, err error)
- func (m *IntegerPoints) MarshalTo(dAtA []byte) (int, error)
- func (*IntegerPoints) ProtoMessage()
- func (m *IntegerPoints) Reset()
- func (m *IntegerPoints) Size() (n int)
- func (m *IntegerPoints) String() string
- func (m *IntegerPoints) Unmarshal(dAtA []byte) error
- type MessageType
- type PointsReader
- type Reader
- type SeriesFooter
- func (*SeriesFooter) Descriptor() ([]byte, []int)
- func (m *SeriesFooter) Marshal() (dAtA []byte, err error)
- func (m *SeriesFooter) MarshalTo(dAtA []byte) (int, error)
- func (*SeriesFooter) ProtoMessage()
- func (m *SeriesFooter) Reset()
- func (m *SeriesFooter) Size() (n int)
- func (m *SeriesFooter) String() string
- func (m *SeriesFooter) Unmarshal(dAtA []byte) error
- type SeriesHeader
- func (*SeriesHeader) Descriptor() ([]byte, []int)
- func (m *SeriesHeader) Marshal() (dAtA []byte, err error)
- func (m *SeriesHeader) MarshalTo(dAtA []byte) (int, error)
- func (*SeriesHeader) ProtoMessage()
- func (m *SeriesHeader) Reset()
- func (m *SeriesHeader) Size() (n int)
- func (m *SeriesHeader) String() string
- func (m *SeriesHeader) Unmarshal(dAtA []byte) error
- type StringPoints
- func (*StringPoints) Descriptor() ([]byte, []int)
- func (m *StringPoints) Marshal() (dAtA []byte, err error)
- func (m *StringPoints) MarshalTo(dAtA []byte) (int, error)
- func (*StringPoints) ProtoMessage()
- func (m *StringPoints) Reset()
- func (m *StringPoints) Size() (n int)
- func (m *StringPoints) String() string
- func (m *StringPoints) Unmarshal(dAtA []byte) error
- type UnsignedPoints
- func (*UnsignedPoints) Descriptor() ([]byte, []int)
- func (m *UnsignedPoints) Marshal() (dAtA []byte, err error)
- func (m *UnsignedPoints) MarshalTo(dAtA []byte) (int, error)
- func (*UnsignedPoints) ProtoMessage()
- func (m *UnsignedPoints) Reset()
- func (m *UnsignedPoints) Size() (n int)
- func (m *UnsignedPoints) String() string
- func (m *UnsignedPoints) Unmarshal(dAtA []byte) error
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthBinary = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBinary = fmt.Errorf("proto: integer overflow") )
View Source
var ( ErrWriteAfterClose = errors.New("format/binary: write after close") ErrWriteBucketAfterClose = errors.New("format/binary: write to closed bucket") )
View Source
var FieldType_name = map[int32]string{
0: "FLOAT",
1: "INTEGER",
2: "UNSIGNED",
3: "BOOLEAN",
4: "STRING",
}
View Source
var FieldType_value = map[string]int32{
"FLOAT": 0,
"INTEGER": 1,
"UNSIGNED": 2,
"BOOLEAN": 3,
"STRING": 4,
}
View Source
var Header_Version_name = map[int32]string{
0: "VERSION_0",
}
View Source
var Header_Version_value = map[string]int32{
"VERSION_0": 0,
}
View Source
var (
Magic = [...]byte{0x49, 0x46, 0x4c, 0x58, 0x44, 0x55, 0x4d, 0x50} // IFLXDUMP
)
Functions ¶
This section is empty.
Types ¶
type BooleanPoints ¶
type BooleanPoints struct { Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` Values []bool `protobuf:"varint,2,rep,packed,name=values" json:"values,omitempty"` }
func (*BooleanPoints) Descriptor ¶
func (*BooleanPoints) Descriptor() ([]byte, []int)
func (*BooleanPoints) Marshal ¶
func (m *BooleanPoints) Marshal() (dAtA []byte, err error)
func (*BooleanPoints) ProtoMessage ¶
func (*BooleanPoints) ProtoMessage()
func (*BooleanPoints) Reset ¶
func (m *BooleanPoints) Reset()
func (*BooleanPoints) Size ¶
func (m *BooleanPoints) Size() (n int)
func (*BooleanPoints) String ¶
func (m *BooleanPoints) String() string
func (*BooleanPoints) Unmarshal ¶
func (m *BooleanPoints) Unmarshal(dAtA []byte) error
type BucketFooter ¶
type BucketFooter struct { }
func (*BucketFooter) Descriptor ¶
func (*BucketFooter) Descriptor() ([]byte, []int)
func (*BucketFooter) Marshal ¶
func (m *BucketFooter) Marshal() (dAtA []byte, err error)
func (*BucketFooter) ProtoMessage ¶
func (*BucketFooter) ProtoMessage()
func (*BucketFooter) Reset ¶
func (m *BucketFooter) Reset()
func (*BucketFooter) Size ¶
func (m *BucketFooter) Size() (n int)
func (*BucketFooter) String ¶
func (m *BucketFooter) String() string
func (*BucketFooter) Unmarshal ¶
func (m *BucketFooter) Unmarshal(dAtA []byte) error
type BucketHeader ¶
type BucketHeader struct { Start int64 `protobuf:"fixed64,1,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"fixed64,2,opt,name=end,proto3" json:"end,omitempty"` }
func (*BucketHeader) Descriptor ¶
func (*BucketHeader) Descriptor() ([]byte, []int)
func (*BucketHeader) Marshal ¶
func (m *BucketHeader) Marshal() (dAtA []byte, err error)
func (*BucketHeader) ProtoMessage ¶
func (*BucketHeader) ProtoMessage()
func (*BucketHeader) Reset ¶
func (m *BucketHeader) Reset()
func (*BucketHeader) Size ¶
func (m *BucketHeader) Size() (n int)
func (*BucketHeader) String ¶
func (m *BucketHeader) String() string
func (*BucketHeader) Unmarshal ¶
func (m *BucketHeader) Unmarshal(dAtA []byte) error
type BucketWriter ¶
type BucketWriter struct {
// contains filtered or unexported fields
}
func (*BucketWriter) BeginSeries ¶
func (*BucketWriter) Close ¶
func (bw *BucketWriter) Close() error
func (*BucketWriter) EndSeries ¶
func (bw *BucketWriter) EndSeries()
func (*BucketWriter) Err ¶
func (bw *BucketWriter) Err() error
func (*BucketWriter) WriteBooleanCursor ¶
func (bw *BucketWriter) WriteBooleanCursor(cur tsdb.BooleanArrayCursor)
func (*BucketWriter) WriteFloatCursor ¶
func (bw *BucketWriter) WriteFloatCursor(cur tsdb.FloatArrayCursor)
func (*BucketWriter) WriteIntegerCursor ¶
func (bw *BucketWriter) WriteIntegerCursor(cur tsdb.IntegerArrayCursor)
func (*BucketWriter) WriteSeries ¶
func (bw *BucketWriter) WriteSeries(name []byte, field []byte, fieldType influxql.DataType, tags models.Tags, ci *storage.CursorIterator) error
func (*BucketWriter) WriteStringCursor ¶
func (bw *BucketWriter) WriteStringCursor(cur tsdb.StringArrayCursor)
func (*BucketWriter) WriteUnsignedCursor ¶
func (bw *BucketWriter) WriteUnsignedCursor(cur tsdb.UnsignedArrayCursor)
type FloatPoints ¶
type FloatPoints struct { Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` Values []float64 `protobuf:"fixed64,2,rep,packed,name=values" json:"values,omitempty"` }
func (*FloatPoints) Descriptor ¶
func (*FloatPoints) Descriptor() ([]byte, []int)
func (*FloatPoints) Marshal ¶
func (m *FloatPoints) Marshal() (dAtA []byte, err error)
func (*FloatPoints) ProtoMessage ¶
func (*FloatPoints) ProtoMessage()
func (*FloatPoints) Reset ¶
func (m *FloatPoints) Reset()
func (*FloatPoints) Size ¶
func (m *FloatPoints) Size() (n int)
func (*FloatPoints) String ¶
func (m *FloatPoints) String() string
func (*FloatPoints) Unmarshal ¶
func (m *FloatPoints) Unmarshal(dAtA []byte) error
type Header ¶
type Header struct { Version Header_Version `protobuf:"varint,1,opt,name=version,proto3,enum=binary.Header_Version" json:"version,omitempty"` Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"` RetentionPolicy string `protobuf:"bytes,3,opt,name=retention_policy,json=retentionPolicy,proto3" json:"retention_policy,omitempty"` ShardDuration time.Duration `protobuf:"varint,4,opt,name=shard_duration,json=shardDuration,proto3,stdduration" json:"shard_duration,omitempty"` }
func (*Header) Descriptor ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type Header_Version ¶
type Header_Version int32
const (
Version0 Header_Version = 0
)
func (Header_Version) EnumDescriptor ¶
func (Header_Version) EnumDescriptor() ([]byte, []int)
func (Header_Version) String ¶
func (x Header_Version) String() string
type IntegerPoints ¶
type IntegerPoints struct { Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` Values []int64 `protobuf:"varint,2,rep,packed,name=values" json:"values,omitempty"` }
func (*IntegerPoints) Descriptor ¶
func (*IntegerPoints) Descriptor() ([]byte, []int)
func (*IntegerPoints) Marshal ¶
func (m *IntegerPoints) Marshal() (dAtA []byte, err error)
func (*IntegerPoints) ProtoMessage ¶
func (*IntegerPoints) ProtoMessage()
func (*IntegerPoints) Reset ¶
func (m *IntegerPoints) Reset()
func (*IntegerPoints) Size ¶
func (m *IntegerPoints) Size() (n int)
func (*IntegerPoints) String ¶
func (m *IntegerPoints) String() string
func (*IntegerPoints) Unmarshal ¶
func (m *IntegerPoints) Unmarshal(dAtA []byte) error
type MessageType ¶
type MessageType byte
const ( HeaderType MessageType = iota + 1 BucketHeaderType SeriesHeaderType FloatPointsType IntegerPointsType UnsignedPointsType BooleanPointsType StringPointsType )
func (MessageType) String ¶
func (i MessageType) String() string
type PointsReader ¶
type PointsReader struct {
// contains filtered or unexported fields
}
func (*PointsReader) Next ¶
func (pr *PointsReader) Next() (bool, error)
func (*PointsReader) Reset ¶
func (pr *PointsReader) Reset(pointsType MessageType)
func (*PointsReader) Values ¶
func (pr *PointsReader) Values() tsm1.Values
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) NextBucket ¶
func (r *Reader) NextBucket() (*BucketHeader, error)
func (*Reader) NextSeries ¶
func (r *Reader) NextSeries() (*SeriesHeader, error)
func (*Reader) Points ¶
func (r *Reader) Points() *PointsReader
func (*Reader) ReadHeader ¶
type SeriesFooter ¶
type SeriesFooter struct { }
func (*SeriesFooter) Descriptor ¶
func (*SeriesFooter) Descriptor() ([]byte, []int)
func (*SeriesFooter) Marshal ¶
func (m *SeriesFooter) Marshal() (dAtA []byte, err error)
func (*SeriesFooter) ProtoMessage ¶
func (*SeriesFooter) ProtoMessage()
func (*SeriesFooter) Reset ¶
func (m *SeriesFooter) Reset()
func (*SeriesFooter) Size ¶
func (m *SeriesFooter) Size() (n int)
func (*SeriesFooter) String ¶
func (m *SeriesFooter) String() string
func (*SeriesFooter) Unmarshal ¶
func (m *SeriesFooter) Unmarshal(dAtA []byte) error
type SeriesHeader ¶
type SeriesHeader struct { FieldType FieldType `protobuf:"varint,1,opt,name=field_type,json=fieldType,proto3,enum=binary.FieldType" json:"field_type,omitempty"` SeriesKey []byte `protobuf:"bytes,2,opt,name=series_key,json=seriesKey,proto3" json:"series_key,omitempty"` Field []byte `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"` }
func (*SeriesHeader) Descriptor ¶
func (*SeriesHeader) Descriptor() ([]byte, []int)
func (*SeriesHeader) Marshal ¶
func (m *SeriesHeader) Marshal() (dAtA []byte, err error)
func (*SeriesHeader) ProtoMessage ¶
func (*SeriesHeader) ProtoMessage()
func (*SeriesHeader) Reset ¶
func (m *SeriesHeader) Reset()
func (*SeriesHeader) Size ¶
func (m *SeriesHeader) Size() (n int)
func (*SeriesHeader) String ¶
func (m *SeriesHeader) String() string
func (*SeriesHeader) Unmarshal ¶
func (m *SeriesHeader) Unmarshal(dAtA []byte) error
type StringPoints ¶
type StringPoints struct { Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` Values []string `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"` }
func (*StringPoints) Descriptor ¶
func (*StringPoints) Descriptor() ([]byte, []int)
func (*StringPoints) Marshal ¶
func (m *StringPoints) Marshal() (dAtA []byte, err error)
func (*StringPoints) ProtoMessage ¶
func (*StringPoints) ProtoMessage()
func (*StringPoints) Reset ¶
func (m *StringPoints) Reset()
func (*StringPoints) Size ¶
func (m *StringPoints) Size() (n int)
func (*StringPoints) String ¶
func (m *StringPoints) String() string
func (*StringPoints) Unmarshal ¶
func (m *StringPoints) Unmarshal(dAtA []byte) error
type UnsignedPoints ¶
type UnsignedPoints struct { Timestamps []int64 `protobuf:"fixed64,1,rep,packed,name=timestamps" json:"timestamps,omitempty"` Values []uint64 `protobuf:"varint,2,rep,packed,name=values" json:"values,omitempty"` }
func (*UnsignedPoints) Descriptor ¶
func (*UnsignedPoints) Descriptor() ([]byte, []int)
func (*UnsignedPoints) Marshal ¶
func (m *UnsignedPoints) Marshal() (dAtA []byte, err error)
func (*UnsignedPoints) ProtoMessage ¶
func (*UnsignedPoints) ProtoMessage()
func (*UnsignedPoints) Reset ¶
func (m *UnsignedPoints) Reset()
func (*UnsignedPoints) Size ¶
func (m *UnsignedPoints) Size() (n int)
func (*UnsignedPoints) String ¶
func (m *UnsignedPoints) String() string
func (*UnsignedPoints) Unmarshal ¶
func (m *UnsignedPoints) Unmarshal(dAtA []byte) error
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) WriteStats ¶
Click to show internal directories.
Click to hide internal directories.