client

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2022 License: MPL-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const BaseURL = "https://api.dns.constellix.com/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient(apiKey, secretKey string, options ...Option) *Client

Returns a singleton

func (*Client) DeletebyId

func (c *Client) DeletebyId(endpoint string) error

func (*Client) GetbyId

func (c *Client) GetbyId(endpoint string) (response *http.Response, err error)

func (*Client) Save

func (c *Client) Save(obj interface{}, endpoint string) (responce *http.Response, err error)

func (*Client) UpdatebyID

func (c *Client) UpdatebyID(obj interface{}, endpoint string) (response *http.Response, err error)

type Option

type Option func(*Client)

func Insecure

func Insecure(insecure bool) Option

func ProxyUrl

func ProxyUrl(pUrl string) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL