storj/satellite/vouchers/endpoint.go

23 lines
611 B
Go
Raw Normal View History

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package vouchers
import (
"context"
"github.com/zeebo/errs"
"storj.io/common/pb"
)
// Endpoint for issuing signed vouchers (DEPRECATED)
2019-09-10 14:24:16 +01:00
//
// architecture: Endpoint
type Endpoint struct{}
// Request is deprecated and returns an error asking the storage node to update to the latest version.
func (endpoint *Endpoint) Request(ctx context.Context, req *pb.VoucherRequest) (_ *pb.VoucherResponse, err error) {
return nil, errs.New("Vouchers endpoint is deprecated. Please upgrade your storage node to the latest version.")
}