Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(proto, addr string, opts []grpc.DialOption) (*grpc.ClientConn, error)
Client creates a grpc client connected to `addr`.
Types ¶
type Credentials ¶
type Credentials interface { // ClientOpts returns the `DialOption`s necessary to setup the credentials when // obtaining a grpc client connection. ClientOpts() []grpc.DialOption // ServerOpts returns the `ServerOption`s necessary to setup the credentials // when creating a grpc server. ServerOpts() []grpc.ServerOption }
Credentials defines the credentials to use when creating a client or server.
Directories
¶
Path | Synopsis |
---|---|
io
Package io is used to ensure that the various pieces of code that interact with credentials read and write files to consistent locations.
|
Package io is used to ensure that the various pieces of code that interact with credentials read and write files to consistent locations. |
Click to show internal directories.
Click to hide internal directories.