libtsdbpb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package libtsdbpb is a generated protocol buffer package.

It is generated from these files:

ts.proto

It has these top-level messages:

Tag
PointInt
PointIntTagged
PointDouble
PointDoubleTagged
PointString
PointStringTagged
PointBool
PointBoolTagged
EmptySeries
SeriesIntTagged
SeriesDoubleTagged
SeriesIntTaggedColumnar
SeriesDoubleTaggedColumnar

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type EmptySeries

type EmptySeries struct {
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Tags []Tag  `protobuf:"bytes,2,rep,name=Tags" json:"Tags"`
}

=== series without data ===

func (*EmptySeries) Descriptor

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

func (*EmptySeries) Marshal

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

func (*EmptySeries) MarshalTo

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

func (*EmptySeries) ProtoMessage

func (*EmptySeries) ProtoMessage()

func (*EmptySeries) RawMetaSize

func (m *EmptySeries) RawMetaSize() int

func (*EmptySeries) RawSize

func (m *EmptySeries) RawSize() int

func (*EmptySeries) Reset

func (m *EmptySeries) Reset()

func (*EmptySeries) Size

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

func (*EmptySeries) String

func (m *EmptySeries) String() string

func (*EmptySeries) Unmarshal

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

type PointBool

type PointBool struct {
	T int64 `protobuf:"varint,1,opt,name=T,proto3" json:"T,omitempty"`
	V bool  `protobuf:"varint,2,opt,name=V,proto3" json:"V,omitempty"`
}

func (*PointBool) Descriptor

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

func (*PointBool) Marshal

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

func (*PointBool) MarshalTo

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

func (*PointBool) ProtoMessage

func (*PointBool) ProtoMessage()

func (*PointBool) Reset

func (m *PointBool) Reset()

func (*PointBool) Size

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

func (*PointBool) String

func (m *PointBool) String() string

func (*PointBool) Unmarshal

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

type PointBoolTagged

type PointBoolTagged struct {
	Name  string    `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Point PointBool `protobuf:"bytes,2,opt,name=Point" json:"Point"`
	Tags  []Tag     `protobuf:"bytes,3,rep,name=Tags" json:"Tags"`
}

func (*PointBoolTagged) Descriptor

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

func (*PointBoolTagged) Marshal

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

func (*PointBoolTagged) MarshalTo

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

func (*PointBoolTagged) ProtoMessage

func (*PointBoolTagged) ProtoMessage()

func (*PointBoolTagged) Reset

func (m *PointBoolTagged) Reset()

func (*PointBoolTagged) Size

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

func (*PointBoolTagged) String

func (m *PointBoolTagged) String() string

func (*PointBoolTagged) Unmarshal

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

type PointDouble

type PointDouble struct {
	T int64   `protobuf:"varint,1,opt,name=T,proto3" json:"T,omitempty"`
	V float64 `protobuf:"fixed64,2,opt,name=V,proto3" json:"V,omitempty"`
}

func (*PointDouble) Descriptor

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

func (*PointDouble) Marshal

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

func (*PointDouble) MarshalTo

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

func (*PointDouble) ProtoMessage

func (*PointDouble) ProtoMessage()

func (*PointDouble) RawMetaSize

func (*PointDouble) RawMetaSize() int

func (*PointDouble) RawSize

func (*PointDouble) RawSize() int

func (*PointDouble) Reset

func (m *PointDouble) Reset()

func (*PointDouble) Size

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

func (*PointDouble) String

func (m *PointDouble) String() string

func (*PointDouble) Unmarshal

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

type PointDoubleTagged

type PointDoubleTagged struct {
	Name  string      `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Point PointDouble `protobuf:"bytes,2,opt,name=Point" json:"Point"`
	Tags  []Tag       `protobuf:"bytes,3,rep,name=Tags" json:"Tags"`
}

func (*PointDoubleTagged) Descriptor

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

func (*PointDoubleTagged) Marshal

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

func (*PointDoubleTagged) MarshalTo

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

func (*PointDoubleTagged) ProtoMessage

func (*PointDoubleTagged) ProtoMessage()

func (*PointDoubleTagged) RawMetaSize

func (m *PointDoubleTagged) RawMetaSize() int

func (*PointDoubleTagged) RawSize

func (m *PointDoubleTagged) RawSize() int

func (*PointDoubleTagged) Reset

func (m *PointDoubleTagged) Reset()

func (*PointDoubleTagged) Size

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

func (*PointDoubleTagged) String

func (m *PointDoubleTagged) String() string

func (*PointDoubleTagged) Unmarshal

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

type PointInt

type PointInt struct {
	T int64 `protobuf:"varint,1,opt,name=T,proto3" json:"T,omitempty"`
	V int64 `protobuf:"varint,2,opt,name=V,proto3" json:"V,omitempty"`
}

=== point ===

func (*PointInt) Descriptor

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

func (*PointInt) Marshal

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

func (*PointInt) MarshalTo

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

func (*PointInt) ProtoMessage

func (*PointInt) ProtoMessage()

func (*PointInt) RawMetaSize

func (*PointInt) RawMetaSize() int

func (*PointInt) RawSize

func (*PointInt) RawSize() int

func (*PointInt) Reset

func (m *PointInt) Reset()

func (*PointInt) Size

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

func (*PointInt) String

func (m *PointInt) String() string

func (*PointInt) Unmarshal

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

type PointIntTagged

type PointIntTagged struct {
	Name  string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Point PointInt `protobuf:"bytes,2,opt,name=Point" json:"Point"`
	Tags  []Tag    `protobuf:"bytes,3,rep,name=Tags" json:"Tags"`
}

func (*PointIntTagged) Descriptor

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

func (*PointIntTagged) Marshal

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

func (*PointIntTagged) MarshalTo

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

func (*PointIntTagged) ProtoMessage

func (*PointIntTagged) ProtoMessage()

func (*PointIntTagged) RawMetaSize

func (m *PointIntTagged) RawMetaSize() int

func (*PointIntTagged) RawSize

func (m *PointIntTagged) RawSize() int

func (*PointIntTagged) Reset

func (m *PointIntTagged) Reset()

func (*PointIntTagged) Size

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

func (*PointIntTagged) String

func (m *PointIntTagged) String() string

func (*PointIntTagged) Unmarshal

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

type PointString

type PointString struct {
	T int64  `protobuf:"varint,1,opt,name=T,proto3" json:"T,omitempty"`
	V string `protobuf:"bytes,2,opt,name=V,proto3" json:"V,omitempty"`
}

func (*PointString) Descriptor

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

func (*PointString) Marshal

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

func (*PointString) MarshalTo

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

func (*PointString) ProtoMessage

func (*PointString) ProtoMessage()

func (*PointString) Reset

func (m *PointString) Reset()

func (*PointString) Size

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

func (*PointString) String

func (m *PointString) String() string

func (*PointString) Unmarshal

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

type PointStringTagged

type PointStringTagged struct {
	Name  string      `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Point PointString `protobuf:"bytes,2,opt,name=Point" json:"Point"`
	Tags  []Tag       `protobuf:"bytes,3,rep,name=Tags" json:"Tags"`
}

func (*PointStringTagged) Descriptor

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

func (*PointStringTagged) Marshal

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

func (*PointStringTagged) MarshalTo

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

func (*PointStringTagged) ProtoMessage

func (*PointStringTagged) ProtoMessage()

func (*PointStringTagged) Reset

func (m *PointStringTagged) Reset()

func (*PointStringTagged) Size

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

func (*PointStringTagged) String

func (m *PointStringTagged) String() string

func (*PointStringTagged) Unmarshal

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

type SeriesDoubleTagged

type SeriesDoubleTagged struct {
	Name   string        `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Points []PointDouble `protobuf:"bytes,2,rep,name=Points" json:"Points"`
	Tags   []Tag         `protobuf:"bytes,3,rep,name=Tags" json:"Tags"`
}

func (*SeriesDoubleTagged) Descriptor

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

func (*SeriesDoubleTagged) Marshal

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

func (*SeriesDoubleTagged) MarshalTo

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

func (*SeriesDoubleTagged) ProtoMessage

func (*SeriesDoubleTagged) ProtoMessage()

func (*SeriesDoubleTagged) RawMetaSize

func (m *SeriesDoubleTagged) RawMetaSize() int

func (*SeriesDoubleTagged) RawSize

func (m *SeriesDoubleTagged) RawSize() int

func (*SeriesDoubleTagged) Reset

func (m *SeriesDoubleTagged) Reset()

func (*SeriesDoubleTagged) Size

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

func (*SeriesDoubleTagged) String

func (m *SeriesDoubleTagged) String() string

func (*SeriesDoubleTagged) Unmarshal

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

type SeriesDoubleTaggedColumnar

type SeriesDoubleTaggedColumnar struct {
	Name   string    `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Times  []int64   `protobuf:"varint,2,rep,packed,name=Times" json:"Times,omitempty"`
	Values []float64 `protobuf:"fixed64,3,rep,packed,name=Values" json:"Values,omitempty"`
	Tags   []Tag     `protobuf:"bytes,4,rep,name=Tags" json:"Tags"`
}

func (*SeriesDoubleTaggedColumnar) Descriptor

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

func (*SeriesDoubleTaggedColumnar) Marshal

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

func (*SeriesDoubleTaggedColumnar) MarshalTo

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

func (*SeriesDoubleTaggedColumnar) ProtoMessage

func (*SeriesDoubleTaggedColumnar) ProtoMessage()

func (*SeriesDoubleTaggedColumnar) RawMetaSize

func (m *SeriesDoubleTaggedColumnar) RawMetaSize() int

func (*SeriesDoubleTaggedColumnar) RawSize

func (m *SeriesDoubleTaggedColumnar) RawSize() int

func (*SeriesDoubleTaggedColumnar) Reset

func (m *SeriesDoubleTaggedColumnar) Reset()

func (*SeriesDoubleTaggedColumnar) Size

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

func (*SeriesDoubleTaggedColumnar) String

func (m *SeriesDoubleTaggedColumnar) String() string

func (*SeriesDoubleTaggedColumnar) Unmarshal

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

type SeriesIntTagged

type SeriesIntTagged struct {
	Name   string     `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Points []PointInt `protobuf:"bytes,2,rep,name=Points" json:"Points"`
	Tags   []Tag      `protobuf:"bytes,3,rep,name=Tags" json:"Tags"`
}

=== series row format === TODO: using columnar format, where Points is stored as []T, []V instead of [](T,V)

func (*SeriesIntTagged) Descriptor

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

func (*SeriesIntTagged) Marshal

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

func (*SeriesIntTagged) MarshalTo

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

func (*SeriesIntTagged) ProtoMessage

func (*SeriesIntTagged) ProtoMessage()

func (*SeriesIntTagged) RawMetaSize

func (m *SeriesIntTagged) RawMetaSize() int

func (*SeriesIntTagged) RawSize

func (m *SeriesIntTagged) RawSize() int

func (*SeriesIntTagged) Reset

func (m *SeriesIntTagged) Reset()

func (*SeriesIntTagged) Size

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

func (*SeriesIntTagged) String

func (m *SeriesIntTagged) String() string

func (*SeriesIntTagged) Unmarshal

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

type SeriesIntTaggedColumnar

type SeriesIntTaggedColumnar struct {
	Name   string  `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Times  []int64 `protobuf:"varint,2,rep,packed,name=Times" json:"Times,omitempty"`
	Values []int64 `protobuf:"varint,3,rep,packed,name=Values" json:"Values,omitempty"`
	Tags   []Tag   `protobuf:"bytes,4,rep,name=Tags" json:"Tags"`
}

=== series column format ==

func (*SeriesIntTaggedColumnar) Descriptor

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

func (*SeriesIntTaggedColumnar) Marshal

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

func (*SeriesIntTaggedColumnar) MarshalTo

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

func (*SeriesIntTaggedColumnar) ProtoMessage

func (*SeriesIntTaggedColumnar) ProtoMessage()

func (*SeriesIntTaggedColumnar) RawMetaSize

func (m *SeriesIntTaggedColumnar) RawMetaSize() int

func (*SeriesIntTaggedColumnar) RawSize

func (m *SeriesIntTaggedColumnar) RawSize() int

func (*SeriesIntTaggedColumnar) Reset

func (m *SeriesIntTaggedColumnar) Reset()

func (*SeriesIntTaggedColumnar) Size

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

func (*SeriesIntTaggedColumnar) String

func (m *SeriesIntTaggedColumnar) String() string

func (*SeriesIntTaggedColumnar) Unmarshal

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

type Sizer

type Sizer interface {
	// RawSize counts series identifier and points without marshal
	RawSize() int
	// RawMetaSize only counts series identifier, name + tags
	RawMetaSize() int
}

Sizer is used to output raw size of series in byte

type Tag

type Tag struct {
	K string `protobuf:"bytes,1,opt,name=K,proto3" json:"K,omitempty"`
	V string `protobuf:"bytes,2,opt,name=V,proto3" json:"V,omitempty"`
}

func (*Tag) Descriptor

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

func (*Tag) Marshal

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

func (*Tag) MarshalTo

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

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) RawMetaSize

func (m *Tag) RawMetaSize() int

func (*Tag) RawSize

func (m *Tag) RawSize() int

func (*Tag) Reset

func (m *Tag) Reset()

func (*Tag) Size

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

func (*Tag) String

func (m *Tag) String() string

func (*Tag) Unmarshal

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

Jump to

Keyboard shortcuts

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