Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCache ¶
type ClientCache struct {
// contains filtered or unexported fields
}
ClientCache is a structure around frostfs-sdk-go/client to reuse already created clients.
func NewSDKClientCache ¶
func NewSDKClientCache(opts ClientCacheOpts) *ClientCache
NewSDKClientCache creates instance of client cache. `opts` are used for new client creation.
func (*ClientCache) CloseAll ¶
func (c *ClientCache) CloseAll()
CloseAll closes underlying connections of all cached clients.
Ignores closing errors.
func (*ClientCache) Get ¶
func (c *ClientCache) Get(info clientcore.NodeInfo) (clientcore.MultiAddressClient, error)
Get function returns existing client or creates a new one.
type ClientCacheOpts ¶
Click to show internal directories.
Click to hide internal directories.