Documentation
¶
Index ¶
- type Client
- func (s *Client) Create(ctx context.Context, duration time.Duration, depth uint16, postageLabel string) error
- func (s *Client) Dilute(ctx context.Context, usageThreshold float64, dilutionDepth uint16, ...) error
- func (s *Client) Set(ctx context.Context, ttlThreshold time.Duration, topupTo time.Duration, ...) error
- func (s *Client) Topup(ctx context.Context, ttlThreshold time.Duration, topupTo time.Duration, ...) (err error)
- type ClientConfig
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *ClientConfig) *Client
func (*Client) Create ¶
func (s *Client) Create(ctx context.Context, duration time.Duration, depth uint16, postageLabel string) error
Create creates a postage batch.
func (*Client) Dilute ¶
func (s *Client) Dilute(ctx context.Context, usageThreshold float64, dilutionDepth uint16, opts ...Option) error
Dilute dilutes a postage batch.
type ClientConfig ¶
type Option ¶
type Option func(*options)
func WithBatchIDs ¶
func WithPostageLabels ¶ added in v0.26.0
Click to show internal directories.
Click to hide internal directories.