grpc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a GRPC client

func NewClient

func NewClient(cfg *config.Config) (*Client, error)

NewClient creates a new GRPC client

func (*Client) Close

func (c *Client) Close() error

Close closes the gRPC connection

func (*Client) Connect

func (c *Client) Connect(ctx context.Context) error

Connect establishes a connection to the specified address

func (*Client) GetClientID

func (c *Client) GetClientID() string

GetClientID returns the client ID

func (*Client) GetConnection

func (c *Client) GetConnection() *grpc.ClientConn

GetConnection returns the GRPC connection

func (*Client) SetClientID

func (c *Client) SetClientID(clientID string)

SetClientID sets the client ID for metadata

Jump to

Keyboard shortcuts

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