Documentation ¶
Index ¶
- Variables
- func ContextStreamInterceptor(f func(context.Context) (context.Context, error)) grpc.StreamClientInterceptor
- func ContextUnaryInterceptor(f func(context.Context) (context.Context, error)) grpc.UnaryClientInterceptor
- func Dial(ctx context.Context, address string, options ...grpc.DialOption) (*grpc.ClientConn, error)
- func MustDial(ctx context.Context, address string, options ...grpc.DialOption) *grpc.ClientConn
- func NewTokenCredentials(token string) credentials.PerRPCCredentials
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithChainUnaryInterceptor = grpc.WithChainUnaryInterceptor WithChainStreamInterceptor = grpc.WithChainStreamInterceptor )
Functions ¶
func ContextUnaryInterceptor ¶
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.
Click to show internal directories.
Click to hide internal directories.