Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 14 Imported by: 3

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 is a grpc connection to a core instance.

func NewClient

func NewClient(_ context.Context, addr string, authConfig types.AuthConfig) (*Client, error)

func (*Client) GetRPCClient

func (c *Client) GetRPCClient() pb.CoreRPCClient

type Pool

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

func NewCoreRPCClientPool

func NewCoreRPCClientPool(ctx context.Context, config *PoolConfig) (*Pool, error)

func (*Pool) GetClient

func (p *Pool) GetClient() pb.CoreRPCClient

GetClient returns the first alive client, or the first client when none are alive.

type PoolConfig

type PoolConfig struct {
	EruAddrs          []string
	Auth              types.AuthConfig
	ConnectionTimeout time.Duration
}

Directories

Path Synopsis
resolver
eru

Jump to

Keyboard shortcuts

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