ea077e4dcb
* node-node communication * PR reviews comments from @bryanchriswhite addressed
16 lines
376 B
Go
16 lines
376 B
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information
|
|
|
|
package pool
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Pool is a set of actions for maintaining a node connection pool
|
|
type Pool interface {
|
|
Add(ctx context.Context, key string, value interface{}) error
|
|
Get(ctx context.Context, key string) (interface{}, error)
|
|
Remove(ctx context.Context, key string) error
|
|
}
|