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 service configuration parameters
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service for issuing signed vouchers
func NewService ¶
func NewService(log *zap.Logger, satellite signing.Signer, cache *overlay.Cache, expiration time.Duration) *Service
NewService creates a new service for issuing signed vouchers
func (*Service) Request ¶
func (service *Service) 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.