Versions in this module Expand all Collapse all v0 v0.2.1 Aug 5, 2021 Changes in this version + type ECDSAGenerator struct + func (g *ECDSAGenerator) Generate() (*KeyPair, error) + type Ed25519Generator struct + func (g *Ed25519Generator) Generate() (*KeyPair, error) + type KeyPair struct + PrivateKey []byte + PublicKey []byte + type KeyPairGenerator interface + Generate func() (*KeyPair, error) + func NewECDSAGenerator(c elliptic.Curve) KeyPairGenerator + func NewEd25519Generator() KeyPairGenerator + func NewRSAGenerator(bits int) KeyPairGenerator + type RSAGenerator struct + func (g *RSAGenerator) Generate() (*KeyPair, error) + type RetryI interface + Backoff func() time.Duration + Interval func() time.Duration + Retries func() int + Retry func(err error, opDesc string) bool + SetBackoff func(backoff time.Duration) + SetInterval func(interval time.Duration) + SetRetries func(retries int) + SetTimeout func(timeout time.Duration) + Timeout func() time.Duration + func NewRetry() RetryI + type RetryOp struct + func (r RetryOp) Backoff() time.Duration + func (r RetryOp) Interval() time.Duration + func (r RetryOp) Retries() int + func (r RetryOp) Retry(err error, opDesc string) bool + func (r RetryOp) SetBackoff(backoff time.Duration) + func (r RetryOp) SetInterval(interval time.Duration) + func (r RetryOp) SetRetries(retries int) + func (r RetryOp) SetTimeout(timeout time.Duration) + func (r RetryOp) Timeout() time.Duration