grpcclient

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChainClient

func NewChainClient(uri string, chainID ids.ID, opts ...grpc.DialOption) (*grpc.ClientConn, error)

NewChainClient returns a grpc.ClientConn that sets the chain-id header for all requests

func SetChainIDHeaderStreamClientInterceptor

func SetChainIDHeaderStreamClientInterceptor(chainID ids.ID) grpc.StreamClientInterceptor

SetChainIDHeaderStreamClientInterceptor sets the chain-id header for streaming requests

func SetChainIDHeaderUnaryClientInterceptor

func SetChainIDHeaderUnaryClientInterceptor(chainID ids.ID) grpc.UnaryClientInterceptor

SetChainIDHeaderUnaryClientInterceptor sets the chain-id header for unary requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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