2019-05-30 20:52:33 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package vouchers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/zeebo/errs"
|
|
|
|
|
|
|
|
"storj.io/storj/pkg/pb"
|
|
|
|
)
|
|
|
|
|
2019-09-04 18:21:02 +01:00
|
|
|
// Endpoint for issuing signed vouchers (DEPRECATED)
|
|
|
|
type Endpoint struct{}
|
2019-05-30 20:52:33 +01:00
|
|
|
|
2019-09-04 18:21:02 +01:00
|
|
|
// Request is deprecated and returns an error asking the storage node to update to the latest version.
|
2019-07-08 12:48:47 +01:00
|
|
|
func (endpoint *Endpoint) Request(ctx context.Context, req *pb.VoucherRequest) (_ *pb.VoucherResponse, err error) {
|
2019-09-04 18:21:02 +01:00
|
|
|
return nil, errs.New("Vouchers endpoint is deprecated. Please upgrade your storage node to the latest version.")
|
2019-05-30 20:52:33 +01:00
|
|
|
}
|