Documentation ¶
Overview ¶
Package dmapi Client for DMAPI joker.com. https://joker.com/faq/category/39/22-dmapi.html
Index ¶
- func AddTxtEntryToZone(zone, relative, value string, ttl int) string
- func RemoveTxtEntryFromZone(zone, relative string) (string, bool)
- type AuthInfo
- type Client
- func (c *Client) CreateAuthenticatedContext(ctx context.Context) (context.Context, error)
- func (c *Client) GetZone(ctx context.Context, domain string) (*Response, error)
- func (c *Client) Logout(ctx context.Context) (*Response, error)
- func (c *Client) PutZone(ctx context.Context, domain, zone string) (*Response, error)
- type Response
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTxtEntryToZone ¶
AddTxtEntryToZone returns DNS zone with added TXT record.
func RemoveTxtEntryFromZone ¶
RemoveTxtEntryFromZone clean-ups all TXT records with given name.
Types ¶
type Client ¶
type Client struct { Debug bool BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
Client a DMAPI Client.
func (*Client) CreateAuthenticatedContext ¶
type Response ¶
type Response struct { Headers url.Values Body string StatusCode int StatusText string AuthSid string }
Response Joker DMAPI Response.
type Token ¶
Token session ID. > Every request (except "login") requires the presence of the Auth-Sid variable ("Session ID"), > which is returned by the "login" request (login). An active session will expire after some inactivity period (default: 1 hour). https://joker.com/faq/content/22/12/en/commonalities-for-all-requests.html
Click to show internal directories.
Click to hide internal directories.