grpcconn

package
v1.35.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuthHeader

func BasicAuthHeader(username, password string) string

func BasicAuthStreamInterceptor

func BasicAuthStreamInterceptor(authHeader string) grpc.StreamClientInterceptor

func BasicAuthUnaryInterceptor

func BasicAuthUnaryInterceptor(authHeader string) grpc.UnaryClientInterceptor

Types

type ConnManager

type ConnManager struct {
	// contains filtered or unexported fields
}

func NewConnManager

func NewConnManager(maxOpenConns int, timeout time.Duration, reg prometheus.Registerer, logger logrus.FieldLogger, grpcOpts ...grpc.DialOption) *ConnManager

func (*ConnManager) CleanupIdleConnections

func (m *ConnManager) CleanupIdleConnections()

func (*ConnManager) Close

func (m *ConnManager) Close()

func (*ConnManager) CloseConn

func (m *ConnManager) CloseConn(addr string) error

func (*ConnManager) GetConn

func (m *ConnManager) GetConn(addr string) (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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