grpc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	// IA is the local ISD-AS.
	IA addr.IA
	// Dialer dials a new gRPC connection.
	Dialer grpc.Dialer

	// Requests aggregates all the outgoing requests sent by the fetcher.
	// If it is not initialized, nothing is reported.
	Requests metrics.Counter
}

Fetcher fetches trust material from a remote using gRPC.

func (Fetcher) Chains

func (f Fetcher) Chains(ctx context.Context, query trust.ChainQuery,
	server net.Addr) ([][]*x509.Certificate, error)

Chains fetches certificate chains over the network

func (Fetcher) TRC

func (f Fetcher) TRC(ctx context.Context, id cppki.TRCID,
	server net.Addr) (cppki.SignedTRC, error)

TRC fetches the TRC over the network.

Jump to

Keyboard shortcuts

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