grpcconn

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package grpcconn provides a gRPC client with authentication

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	ctx context.Context,
	endpoint string,
	tokenProvider TokenProviderFn,
	dialOpts ...grpc.DialOption,
) (*grpc.ClientConn, error)

New creates a new gRPC client with authentication

Types

type TokenProviderFn

type TokenProviderFn func(ctx context.Context) (string, error)

TokenProviderFn is a function that returns an authorization token

Jump to

Keyboard shortcuts

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