Documentation ¶
Overview ¶
Package grpc provides the client and server support for communicating with a remote stash using grpc.
Index ¶
- Constants
- func Connect(ctx context.Context, conn *grpc.ClientConn) (*stash.Client, error)
- func Dial(ctx context.Context, location *url.URL) (*stash.Client, error)
- func MustConnect(ctx context.Context, conn *grpc.ClientConn) *stash.Client
- func Serve(ctx context.Context, grpcServer *grpc.Server, service stash.Service) error
Constants ¶
View Source
const (
ErrInvalidOffset = fault.Const("invalid seek offset")
)
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect returns a remote grpc backed implementation of stash.Service using the supplied connection.
func MustConnect ¶
MustConnect returns a remote grpc backed implementation of a stash client using the supplied connection. It panics if the connection fails for any reason.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.