cache

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBufferSize = 4 * 1024 * 1024 // 4MB

DefaultBufferSize describes default max GRPC message size. Unfortunately GRPC lib contains this const in private.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients added in v0.45.2

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

Clients manages connections to remote SNs.

func NewClients added in v0.45.2

func NewClients(l *zap.Logger, signBufPool *sync.Pool, streamTimeout, minConnTimeout, pingInterval, pingTimeout time.Duration) *Clients

NewClients constructs Clients initializing connection to any endpoint with given parameters.

func (*Clients) CloseAll added in v0.45.2

func (x *Clients) CloseAll()

CloseAll closes all opened connections.

func (*Clients) Get added in v0.45.2

Get initializes connections to network addresses of described SN and returns interface to access them. All opened connections are cached and kept alive until Clients.CloseAll.

func (*Clients) SyncWithNewNetmap added in v0.45.2

func (x *Clients) SyncWithNewNetmap(sns []netmap.NodeInfo, local int)

SyncWithNewNetmap synchronizes x with the passed new network map.

Jump to

Keyboard shortcuts

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