storj/satellite/vouchers/endpoint.go
Egon Elbre 6615ecc9b6 common: separate repository
Change-Id: Ibb89c42060450e3839481a7e495bbe3ad940610a
2019-12-27 14:11:15 +02:00

23 lines
611 B
Go

// 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)
//
// 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.")
}