client

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MPL-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const BaseURL = "https://api.dnsmadeeasy.com/V2.0/"
View Source
const SleepDuration = 5

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) Delete

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

func (*Client) GetbyId

func (c *Client) GetbyId(endpoint string) (*container.Container, error)

func (*Client) PrepareModel

func (c *Client) PrepareModel(obj models.Model) (*container.Container, error)

func (*Client) Save

func (c *Client) Save(obj models.Model, endpoint string) (*container.Container, error)

func (*Client) Update

func (c *Client) Update(obj models.Model, endpoint string) (*container.Container, error)

type Option

type Option func(*Client)

get first

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