storj/satellite/vouchers/endpoint.go

21 lines
585 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/storj/pkg/pb"
)
// Endpoint for issuing signed vouchers (DEPRECATED)
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.")
}