receive

package
v0.0.0-...-ec3894d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Package prompb is a generated protocol buffer package.

It is generated from these files:

remote.proto

It has these top-level messages:

ReadRequest
ReadResponse
Query
QueryResult
Sample
TimeSeries
Label
LabelMatcher

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Appendable

type Appendable interface {
	Appender() (storage.Appender, error)
}

Appendable returns an Appender.

type PartialTimeSeries

type PartialTimeSeries struct {
	LabelBytes [][]byte
	Labels     []prompb.Label  `protobuf:"bytes,1,rep,name=labels" json:"labels"`
	Samples    []prompb.Sample `protobuf:"bytes,2,rep,name=samples" json:"samples"`
}

func (*PartialTimeSeries) Unmarshal

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

func (*PartialTimeSeries) UnmarshalLabels

func (m *PartialTimeSeries) UnmarshalLabels() error

type PartialWriteRequest

type PartialWriteRequest struct {
	Timeseries []*PartialTimeSeries `protobuf:"bytes,1,rep,name=timeseries" json:"timeseries,omitempty"`
}

func (*PartialWriteRequest) Unmarshal

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

type Receiver

type Receiver struct {
	// contains filtered or unexported fields
}

func NewReceiver

func NewReceiver(logger log.Logger, app Appendable) *Receiver

func (*Receiver) Receive

func (r *Receiver) Receive(wreq *PartialWriteRequest) error

Jump to

Keyboard shortcuts

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