client

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(pather command.Pather) *cobra.Command

func ComputeExpiration added in v0.1.2

func ComputeExpiration(d time.Duration) time.Time

ComputeExpiration computes the expiration time of the reservation. If d is 0, then the reservation is renewed forever.

func Reserve added in v0.1.2

func Reserve(ctx context.Context, r Reservation) (net.Conn, func(), error)

Types

type Reservation added in v0.1.2

type Reservation struct {
	// Conn is the connection on which the reservation will be applied.
	Conn *snet.Conn
	// Daemon is the SCION Daemon to which the reservation RPCs will be sent.
	Daemon net.Addr
	// SubscriptionInfo describes the reservation parameters.
	SubscriptionInfo bwallocation.SubscriptionInfo
}

Reservation contains all the information for registering a reservation for a connection.

Directories

Path Synopsis
Package view contains the frontend for the client application.
Package view contains the frontend for the client application.

Jump to

Keyboard shortcuts

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