remote

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewGrpcServer

func CreateNewGrpcServer(store storage.Storage) *grpc.Server

CreateNewGrpcServer creates server, given context local storage

func DecodeCompressedFetchResult

func DecodeCompressedFetchResult(
	fetchResult *rpc.FetchResult,
	iteratorPools encoding.IteratorPools,
) (encoding.SeriesIterators, error)

DecodeCompressedFetchResult decodes compressed fetch results to seriesIterators

func DecodeFetchMessage

func DecodeFetchMessage(message *rpc.FetchMessage) (*storage.FetchQuery, string, error)

DecodeFetchMessage decodes rpc fetch message to read query and read options

func DecodeFetchResult

func DecodeFetchResult(_ context.Context, rpcSeries []*rpc.Series) ([]*ts.Series, error)

DecodeFetchResult decodes fetch results from a GRPC-compatible type.

func DecodeWriteMessage

func DecodeWriteMessage(message *rpc.WriteMessage) (*storage.WriteQuery, string)

DecodeWriteMessage decodes rpc write message to write query and write options

func EncodeFetchMessage

func EncodeFetchMessage(query *storage.FetchQuery, queryID string) *rpc.FetchMessage

EncodeFetchMessage encodes fetch query and fetch options into rpc WriteMessage

func EncodeFetchResult

func EncodeFetchResult(sResult *storage.FetchResult) *rpc.FetchResult

EncodeFetchResult encodes fetch result to rpc result

func EncodeToCompressedFetchResult

func EncodeToCompressedFetchResult(
	iterators encoding.SeriesIterators,
	iterPools encoding.IteratorPools,
) (*rpc.FetchResult, error)

EncodeToCompressedFetchResult encodes SeriesIterators to compressed fetch results

func EncodeWriteMessage

func EncodeWriteMessage(query *storage.WriteQuery, queryID string) *rpc.WriteMessage

EncodeWriteMessage encodes write query and write options into rpc WriteMessage

func StartNewGrpcServer

func StartNewGrpcServer(server *grpc.Server, address string, waitForStart chan<- struct{}) error

StartNewGrpcServer starts server on given address, then notifies channel

Types

type Client

type Client interface {
	storage.Querier
	storage.Appender
	Close() error
}

Client is an interface

func NewGrpcClient

func NewGrpcClient(addresses []string, additionalDialOpts ...grpc.DialOption) (Client, error)

NewGrpcClient creates grpc client

Jump to

Keyboard shortcuts

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