grpc

package
v0.0.0-...-6c7272e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package grpc provides the client and server support for communicating with a remote stash using grpc.

Index

Constants

View Source
const (
	ErrInvalidOffset = fault.Const("invalid seek offset")
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, conn *grpc.ClientConn) (*stash.Client, error)

Connect returns a remote grpc backed implementation of stash.Service using the supplied connection.

func Dial

func Dial(ctx context.Context, location *url.URL) (*stash.Client, error)

Dial returns a remote grpc backed stash client from a url.

func MustConnect

func MustConnect(ctx context.Context, conn *grpc.ClientConn) *stash.Client

MustConnect returns a remote grpc backed implementation of a stash client using the supplied connection. It panics if the connection fails for any reason.

func Serve

func Serve(ctx context.Context, grpcServer *grpc.Server, service stash.Service) error

Serve wraps a store in a grpc server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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