Documentation ¶
Index ¶
- func DialContext(ctx context.Context, addr string, opts ...DialOption) (*grpc.ClientConn, error)
- func DialOptions(opts ...DialOption) ([]grpc.DialOption, error)
- func NewPerRPCCredentials(credentials string, t rpcauth.CredentialsType, requireTransportSecurity bool) credentials.PerRPCCredentials
- func NewPerRPCCredentialsFromFile(credentialsFile string, t rpcauth.CredentialsType, ...) (credentials.PerRPCCredentials, error)
- func RequestValidationUnaryClientInterceptor() grpc.UnaryClientInterceptor
- type DialOption
- func WithBlock() DialOption
- func WithInsecure() DialOption
- func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption
- func WithRequestValidationInterceptor() DialOption
- func WithTLS(certFile string) DialOption
- func WithTransportCredentials(creds credentials.TransportCredentials) DialOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialContext ¶
func DialContext(ctx context.Context, addr string, opts ...DialOption) (*grpc.ClientConn, error)
func DialOptions ¶
func DialOptions(opts ...DialOption) ([]grpc.DialOption, error)
func NewPerRPCCredentials ¶
func NewPerRPCCredentials(credentials string, t rpcauth.CredentialsType, requireTransportSecurity bool) credentials.PerRPCCredentials
func NewPerRPCCredentialsFromFile ¶
func NewPerRPCCredentialsFromFile(credentialsFile string, t rpcauth.CredentialsType, requireTransportSecurity bool) (credentials.PerRPCCredentials, error)
func RequestValidationUnaryClientInterceptor ¶
func RequestValidationUnaryClientInterceptor() grpc.UnaryClientInterceptor
RequestValidationUnaryClientInterceptor validates the request payload if the request implements requestValidator interface. An InvalidArgument with the detail message will be returned to client if the validation was not passed.
Types ¶
type DialOption ¶
type DialOption func(*option)
func WithBlock ¶
func WithBlock() DialOption
func WithInsecure ¶
func WithInsecure() DialOption
func WithPerRPCCredentials ¶
func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption
func WithRequestValidationInterceptor ¶
func WithRequestValidationInterceptor() DialOption
func WithTLS ¶
func WithTLS(certFile string) DialOption
func WithTransportCredentials ¶
func WithTransportCredentials(creds credentials.TransportCredentials) DialOption
Click to show internal directories.
Click to hide internal directories.