Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequest ¶
APIRequest represents an API request body.
type APIResponse ¶
type APIResponse[T any] struct { ID string `json:"id"` RPC string `json:"jsonrpc"` Error *APIError `json:"error,omitempty"` Result T `json:"result,omitempty"` }
APIResponse represents an API response body.
func (APIResponse[T]) GetError ¶ added in v4.12.0
func (a APIResponse[T]) GetError() error
type Client ¶
Client is a Njalla API client.
func (*Client) ListRecords ¶
ListRecords list the records for one domain.
type Record ¶
type Record struct { ID string `json:"id,omitempty"` Content string `json:"content,omitempty"` Domain string `json:"domain,omitempty"` Name string `json:"name,omitempty"` TTL int `json:"ttl,omitempty"` Type string `json:"type,omitempty"` }
Record is a DNS record.
Click to show internal directories.
Click to hide internal directories.