grpcclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis
resolver

Jump to

Keyboard shortcuts

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