rpcclient

package
v0.48.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 WithMaxRecvMsgSize added in v0.42.1

func WithMaxRecvMsgSize(m int) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL