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"
|
|
|
|
|
2019-12-27 11:48:47 +00:00
|
|
|
"storj.io/common/pb"
|
2019-05-30 20:52:33 +01:00
|
|
|
)
|
|
|
|
|
2019-09-04 18:21:02 +01:00
|
|
|
// Endpoint for issuing signed vouchers (DEPRECATED)
|
2019-09-10 14:24:16 +01:00
|
|
|
//
|
|
|
|
// architecture: Endpoint
|
2019-09-04 18:21:02 +01:00
|
|
|
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
|
|
|
}
|