Documentation ¶
Index ¶
- func BuildDialOption(ctx context.Context, serverServiceName string) []grpc.DialOption
- func EnableQuic(ctx context.Context, enable bool) context.Context
- func GetClientCerts(ctx context.Context) credentials.TransportCredentials
- func GetPerRPCCredentials(ctx context.Context) credentials.PerRPCCredentials
- func NewClientConn(ctx context.Context, serverAddr string, serverServiceName string) (*grpc.ClientConn, error)
- func NewClientConnByResolverBuilder(ctx context.Context, serviceInfo configuration.ServiceInfo, ...) (*grpc.ClientConn, error)
- func NewClientConnByServiceInfo(ctx context.Context, serviceInfo configuration.ServiceInfo) (*grpc.ClientConn, error)
- func SetClientCerds(ctx context.Context, creds credentials.TransportCredentials) context.Context
- func SetInsecureSkipVerifyCerds(ctx context.Context) context.Context
- func SetPerRPCCredentials(ctx context.Context, prc credentials.PerRPCCredentials) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDialOption ¶
func BuildDialOption(ctx context.Context, serverServiceName string) []grpc.DialOption
func GetClientCerts ¶
func GetClientCerts(ctx context.Context) credentials.TransportCredentials
func GetPerRPCCredentials ¶
func GetPerRPCCredentials(ctx context.Context) credentials.PerRPCCredentials
func NewClientConn ¶
func NewClientConnByResolverBuilder ¶
func NewClientConnByResolverBuilder(ctx context.Context, serviceInfo configuration.ServiceInfo, resolverBuilders ...resolver.Builder) (*grpc.ClientConn, error)
func NewClientConnByServiceInfo ¶
func NewClientConnByServiceInfo(ctx context.Context, serviceInfo configuration.ServiceInfo) (*grpc.ClientConn, error)
func SetClientCerds ¶
func SetClientCerds(ctx context.Context, creds credentials.TransportCredentials) context.Context
func SetPerRPCCredentials ¶
func SetPerRPCCredentials(ctx context.Context, prc credentials.PerRPCCredentials) context.Context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.