Documentation ¶
Index ¶
Constants ¶
View Source
const (
Scheme = "discovery"
)
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(ctx context.Context, endpoint string, opts ...ClientOption) (*grpc.ClientConn, error)
Dial dials grpc endpoint, return client connection.
Types ¶
type ClientOption ¶
type ClientOption func(o *clientOptions)
func WithBalancer ¶
func WithBalancer(name string) ClientOption
func WithDiscovery ¶
func WithDiscovery(d registry.Discovery) ClientOption
WithDiscovery with client discovery.
func WithOptions ¶
func WithOptions(opts ...grpc.DialOption) ClientOption
WithOptions with gRPC options.
Click to show internal directories.
Click to hide internal directories.