Versions in this module Expand all Collapse all v0 v0.2.0 Jan 9, 2025 Changes in this version type Account + ServerURL string + type Option func(c *Client) + func WithHTTPClient(client *http.Client) Option + type Register struct + AllowFrom []string type Storage + FetchAll func(ctx context.Context) (map[string]Account, error) + type Update struct + SubDomain string + Txt string v0.0.1 Oct 9, 2018 Changes in this version + var ErrDomainNotFound = errors.New("requested domain is not present in storage") + type Account struct + FullDomain string + Password string + SubDomain string + Username string + type Client struct + func NewClient(url string) Client + func (c Client) RegisterAccount(allowFrom []string) (Account, error) + func (c Client) UpdateTXTRecord(account Account, value string) error + type ClientError struct + Body []byte + HTTPStatus int + Message string + func (e ClientError) Error() string + type Storage interface + Fetch func(string) (Account, error) + Put func(string, Account) error + Save func() error + func NewFileStorage(path string, mode os.FileMode) Storage