package grpcprocess

Import Path
	go.pact.im/x/grpcprocess (on go.dev)

Dependency Relation
	imports 7 packages, and imported by 0 packages

Involved Source Files client.go Package grpcprocess provides [process.Runner] wrappers for [grpc.ClientConn] and [grpc.Server]. server.go
Package-Level Type Names (total 3, in which 2 are exported)
/* sort exporteds by: | */
ClientConn is a process-managed gRPC client connection. Invoke performs a unary RPC and returns after the response is received into reply. NewStream begins a streaming RPC. Run executes the process. Callback function is called when the process has been initialized and began execution. The process is interrupted if the callback returns or the given context expires. On termination the context passed to the callback is canceled. To make debugging easier, callback runs in the same goroutine where Run was invoked. Note though that this behavior currently is not supported by all existing Run implementations. It is safe to assume that callback is called at most once per Run invocation. ClientConn : go.pact.im/x/process.Runner ClientConn : google.golang.org/grpc.ClientConnInterface func Client(connect ClientFunc) ClientConn
ClientFunc creates a gRPC client connection using the given context. func Client(connect ClientFunc) ClientConn
Package-Level Functions (total 2, both are exported)
Client returns a [ClientConn] that creates its underlying [grpc.ClientConn] using connect at application runtime.
Server returns a [process.Runner] instance for the given gRPC server and network listener.