vouchers

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Error the default vouchers errs class
	Error = errs.Class("vouchers error")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Expiration time.Duration `help:"length of time before a voucher expires" default:"720h0m0s"`
}

Config contains voucher endpoint configuration parameters

type Endpoint added in v0.15.0

type Endpoint struct {
	// contains filtered or unexported fields
}

Endpoint for issuing signed vouchers

func NewEndpoint added in v0.15.0

func NewEndpoint(log *zap.Logger, satellite signing.Signer, overlay *overlay.Service, expiration time.Duration) *Endpoint

NewEndpoint creates a new endpoint for issuing signed vouchers

func (*Endpoint) Request added in v0.15.0

func (endpoint *Endpoint) Request(ctx context.Context, req *pb.VoucherRequest) (_ *pb.VoucherResponse, err error)

Request receives a voucher request and returns a voucher and an error

Jump to

Keyboard shortcuts

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