grpc

package
v0.0.0-...-d85aa1e Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoCertsFound is returned when no certificates are found in the specifed file
	ErrNoCertsFound = errors.New("no certificates found")
)

Functions

func StartServer

func StartServer(conf *pb.ServerConfig, server pb.VerifiableDataStructuresServiceServer)

StartServer starts a gRPC server given a service. Normally this service is an instance of LocalService.

Types

type Client

type Client struct {
	// NoGrpcSecurity if set will disable TLS for this connection
	NoGrpcSecurity bool

	// CertDer is an ASN.1 DER X.509 certificate that the certificate presented by the server
	// must be signed by. This can be either a self-signed, or private CA cert.
	// If not set, the system CA pool is used.
	CertDer []byte

	// Address of the server to connect to, e.g. "localhost:8080"
	Address string
}

Client provides a way to access a remote Verifiable Data Structures API using gRPC. This is preferred over the REST server/client.

func (*Client) Dial

Dial connects to the server and returns an object to communicate with it. Most users will wrap this with the higher-level API.

func (*Client) MustDial

MustDial is a convenience method that exits with a fatal error if the operation fails

Jump to

Keyboard shortcuts

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