celrpc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 9 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

Overview

Package celrpc defines CEL conformance service RPC helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleNewClientFromPath

func ExampleNewClientFromPath()

ExampleNewClientFromPath creates a new CEL RPC client using a path to a server binary. TODO Run from celrpc_test.go.

func RunServer

func RunServer(service exprpb.ConformanceServiceServer)

RunServer listens on a dynamically-allocated port on the loopback network device, prints its address and port to stdout, then starts a gRPC server on the socket with the given service callbacks. Note that this call doesn't return until ther server exits.

Types

type ConfClient

type ConfClient struct {
	exprpb.ConformanceServiceClient
	// contains filtered or unexported fields
}

ConfClient manages calls to conformance test services.

func NewClientFromPath

func NewClientFromPath(serverPath string) (*ConfClient, error)

NewClientFromPath creates a new ConformanceService gRPC client, connecting to a server which is launched by the binary at the given serverPath. The spawned server shares the current process's stderr, so its log messages will be visible. The caller must call Shutdown() on the retured ConfClient, even if NewClientFromPath() returns a non-nil error.

func (*ConfClient) Shutdown

func (c *ConfClient) Shutdown()

Shutdown deallocates all resources associated with the client. No further calls should be made on the client after shutdown. Shutdown should be called even on an error return from NewClientFromPath().

Jump to

Keyboard shortcuts

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