Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultRPCDialTimeout is the timeout used for dialing the gRPC ClientConn. // This is shorter than the typical context deadline for the request. // Having a separate, more aggressive timeout for dialing allows to abort // quickly. This allows the surrounding infrastructure to retry quickly -- in // the case where this request goes over SCION/QUIC, retries are used to // route around broken paths. // This timeout needs to be long enough to allow for service address // resolution and the QUIC handshake to complete (two roundtrips). DefaultRPCDialTimeout time.Duration = 1 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Requester ¶
Requester fetches segments from a remote using gRPC.
func (*Requester) Segments ¶
func (f *Requester) Segments(ctx context.Context, req segfetcher.Request, server net.Addr) (segfetcher.SegmentsReply, error)
Click to show internal directories.
Click to hide internal directories.