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
Click to show internal directories.
Click to hide internal directories.