client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WithChainUnaryInterceptor  = grpc.WithChainUnaryInterceptor
	WithChainStreamInterceptor = grpc.WithChainStreamInterceptor
)

Functions

func ContextUnaryInterceptor

func ContextUnaryInterceptor(f func(context.Context) (context.Context, error)) grpc.UnaryClientInterceptor

func Dial

func Dial(ctx context.Context, address string, options ...grpc.DialOption) (*grpc.ClientConn, error)

Dial creates a client connection to the given target with health check enabled and some others default configurations.

func MustDial

func MustDial(ctx context.Context, address string, options ...grpc.DialOption) *grpc.ClientConn

MustDial same as Dial but panic if error.

func NewTokenCredentials

func NewTokenCredentials(token string) credentials.PerRPCCredentials

NewTokenCredentials returns a PerRPCCredentials using the provided token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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