Documentation
¶
Index ¶
- type APIError
- type APIRequest
- type APIResponse
- type Client
- func (c *Client) AddRecord(record Record) (*Record, error)
- func (c *Client) EditRecord(id string, domain string, content string) error
- func (c *Client) GetRecord(name string, recordType string, domain string) (*Record, error)
- func (c *Client) ListRecords(domain string) ([]Record, error)
- func (c *Client) RemoveRecord(id string, domain string) error
- type Record
- type Records
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequest ¶
type APIRequest struct { Method string `json:"method"` Params interface{} `json:"params"` }
APIRequest represents an API request body.
type APIResponse ¶
type APIResponse struct { ID string `json:"id"` RPC string `json:"jsonrpc"` Error *APIError `json:"error,omitempty"` Result json.RawMessage `json:"result,omitempty"` }
APIResponse represents an API response body.
type Client ¶
Client is a Njalla API client.
func (*Client) EditRecord ¶
EditRecord edits a record.
func (*Client) ListRecords ¶
ListRecords list the records for one domain.
Click to show internal directories.
Click to hide internal directories.