Versions in this module Expand all Collapse all v1 v1.2.3 Sep 13, 2026 v1.2.2 Sep 13, 2026 Changes in this version + type Client struct + func NewClient(productID, baseURL, instanceID string, store InstanceIDStore, ...) (*Client, error) + func (c *Client) Activate(ctx context.Context, licenseKey, instanceID string) (*generated.ActivationResult, error) + func (c *Client) CreateRenewalSession(ctx context.Context, licenseKey, instanceID, idempotencyKey string) (*generated.RenewalSessionResult, error) + func (c *Client) CreateRenewalSessionWithReturnURL(ctx context.Context, licenseKey, instanceID, idempotencyKey, returnURL string) (*generated.RenewalSessionResult, error) + func (c *Client) Deactivate(ctx context.Context, licenseKey, instanceID string) (*generated.DeactivationResult, error) + func (c *Client) GetRenewalSessionStatus(ctx context.Context, licenseKey, instanceID, renewalSessionID string) (*generated.RenewalStatusResult, error) + func (c *Client) Validate(ctx context.Context, licenseKey, instanceID string) (*generated.ValidationResult, error) + type DigiteaError struct + Code string + Details any + RetryAfter time.Duration + Status int + func (e *DigiteaError) Error() string + type FileInstanceIDStore struct + Path string + func (s FileInstanceIDStore) Load() (string, error) + func (s FileInstanceIDStore) Save(value string) error + type InstanceIDStore interface + Load func() (string, error) + Save func(string) error