caecb2801d
* Remove DialUnauthenticated method * Use more specific node transport enum * Formatting * Rename Provider.g -> Provider.grpc * Fix naming in dialer
26 lines
532 B
Go
26 lines
532 B
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package transport
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/zeebo/errs"
|
|
"google.golang.org/grpc"
|
|
monkit "gopkg.in/spacemonkeygo/monkit.v2"
|
|
|
|
"storj.io/storj/pkg/pb"
|
|
)
|
|
|
|
var (
|
|
mon = monkit.Package()
|
|
//Error is the errs class of standard Transport Client errors
|
|
Error = errs.Class("transport error")
|
|
)
|
|
|
|
// Client defines the interface to an transport client.
|
|
type Client interface {
|
|
DialNode(ctx context.Context, node *pb.Node) (*grpc.ClientConn, error)
|
|
}
|