Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPoolClosed = errors.New("preparams pool is closed")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Enabled bool
TargetSize int
MaxConcurrency int
GenerateTimeout time.Duration
AcquireTimeout time.Duration
RetryBackoff time.Duration
SyncFallbackOnEmpty bool
FileCacheEnabled bool
FileCacheDir string
}
func DefaultConfig ¶
func DefaultConfig() Config
type Generator ¶
type Generator func(ctx context.Context) (*ecdsakeygen.LocalPreParams, error)
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) Acquire ¶
func (p *Pool) Acquire(ctx context.Context) (*ecdsakeygen.LocalPreParams, error)
type Validator ¶
type Validator func(params *ecdsakeygen.LocalPreParams) bool
Click to show internal directories.
Click to hide internal directories.