Documentation ¶
Index ¶
- func CreateNewGrpcServer(store m3.Storage, poolWrapper *pools.PoolWrapper) *grpc.Server
- func DecodeCompressedFetchResponse(fetchResult *rpc.FetchResponse, iteratorPools encoding.IteratorPools) (encoding.SeriesIterators, error)
- func DecodeDecompressedFetchResult(name string, rpcSeries []*rpc.DecompressedSeries) ([]*ts.Series, error)
- func DecodeFetchRequest(req *rpc.FetchRequest) (*storage.FetchQuery, error)
- func EncodeFetchRequest(query *storage.FetchQuery) (*rpc.FetchRequest, error)
- func EncodeFetchResult(results *storage.FetchResult) *rpc.FetchResponse
- func EncodeMetadata(ctx context.Context, requestID string) context.Context
- func EncodeToCompressedFetchResult(iterators encoding.SeriesIterators, iterPools encoding.IteratorPools) (*rpc.FetchResponse, error)
- func RetrieveMetadata(streamCtx context.Context) context.Context
- func StartNewGrpcServer(server *grpc.Server, address string, waitForStart chan<- struct{}) error
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewGrpcServer ¶
CreateNewGrpcServer builds a grpc server which must be started later
func DecodeCompressedFetchResponse ¶ added in v0.4.5
func DecodeCompressedFetchResponse( fetchResult *rpc.FetchResponse, iteratorPools encoding.IteratorPools, ) (encoding.SeriesIterators, error)
DecodeCompressedFetchResponse decodes compressed fetch response to seriesIterators
func DecodeDecompressedFetchResult ¶ added in v0.4.5
func DecodeDecompressedFetchResult( name string, rpcSeries []*rpc.DecompressedSeries, ) ([]*ts.Series, error)
DecodeDecompressedFetchResult decodes fetch results from a GRPC-compatible type.
func DecodeFetchRequest ¶ added in v0.4.5
func DecodeFetchRequest( req *rpc.FetchRequest, ) (*storage.FetchQuery, error)
DecodeFetchRequest decodes rpc fetch request to read query and read options
func EncodeFetchRequest ¶ added in v0.4.5
func EncodeFetchRequest( query *storage.FetchQuery, ) (*rpc.FetchRequest, error)
EncodeFetchRequest encodes fetch request into rpc FetchRequest
func EncodeFetchResult ¶
func EncodeFetchResult(results *storage.FetchResult) *rpc.FetchResponse
EncodeFetchResult encodes fetch result to rpc response
func EncodeMetadata ¶ added in v0.4.5
EncodeMetadata creates a context that propagates request metadata as well as requestID
func EncodeToCompressedFetchResult ¶
func EncodeToCompressedFetchResult( iterators encoding.SeriesIterators, iterPools encoding.IteratorPools, ) (*rpc.FetchResponse, error)
EncodeToCompressedFetchResult encodes SeriesIterators to compressed fetch response
func RetrieveMetadata ¶ added in v0.4.5
RetrieveMetadata creates a context with propagated request metadata as well as requestID
Types ¶
type Client ¶
Client is the grpc client
func NewGrpcClient ¶
func NewGrpcClient( addresses []string, poolWrapper *pools.PoolWrapper, workerPool pool.ObjectPool, additionalDialOpts ...grpc.DialOption, ) (Client, error)
NewGrpcClient creates grpc client