Documentation ¶
Index ¶
- func New(ctx context.Context, opts ...GrpcClientOption) (*grpc.ClientConn, error)
- type GrpcClient
- type GrpcClientOption
- func WithGrpcClientOptionBalancerName(balancerName string) GrpcClientOption
- func WithGrpcClientOptionDialOption(dialOptions []grpc.DialOption) GrpcClientOption
- func WithGrpcClientOptionInsecure(insecure bool) GrpcClientOption
- func WithGrpcClientOptionStreamClientInterceptors(streamClientInterceptors []grpc.StreamClientInterceptor) GrpcClientOption
- func WithGrpcClientOptionTarget(target string) GrpcClientOption
- func WithGrpcClientOptionTimeout(timeout time.Duration) GrpcClientOption
- func WithGrpcClientOptionUnaryClientInterceptors(unaryClientInterceptors []grpc.UnaryClientInterceptor) GrpcClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, opts ...GrpcClientOption) (*grpc.ClientConn, error)
Types ¶
type GrpcClient ¶
type GrpcClient struct {
// contains filtered or unexported fields
}
type GrpcClientOption ¶
type GrpcClientOption func(c *GrpcClient)
func WithGrpcClientOptionBalancerName ¶
func WithGrpcClientOptionBalancerName(balancerName string) GrpcClientOption
func WithGrpcClientOptionDialOption ¶
func WithGrpcClientOptionDialOption(dialOptions []grpc.DialOption) GrpcClientOption
func WithGrpcClientOptionInsecure ¶
func WithGrpcClientOptionInsecure(insecure bool) GrpcClientOption
func WithGrpcClientOptionStreamClientInterceptors ¶
func WithGrpcClientOptionStreamClientInterceptors(streamClientInterceptors []grpc.StreamClientInterceptor) GrpcClientOption
func WithGrpcClientOptionTarget ¶
func WithGrpcClientOptionTarget(target string) GrpcClientOption
func WithGrpcClientOptionTimeout ¶
func WithGrpcClientOptionTimeout(timeout time.Duration) GrpcClientOption
func WithGrpcClientOptionUnaryClientInterceptors ¶
func WithGrpcClientOptionUnaryClientInterceptors(unaryClientInterceptors []grpc.UnaryClientInterceptor) GrpcClientOption
Click to show internal directories.
Click to hide internal directories.