api

package
v0.0.29-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contacts

type Contacts interface {
	Validate() *http.Request
}

Contacts builds the contacts piece of the URL

type ContactsGetter

type ContactsGetter interface {
	Contacts() Contacts
}

ContactsGetter allows for easy embedding (?)

type Domain

type Domain interface {
	ContactsGetter
	PrivacyGetter
	RecordsGetter
	Agreements([]string, bool, bool) *http.Request
	IsAvailable() (*domainsEndpoint.Available, error)
	GetDetails() (*domainsEndpoint.DomainDetails, error)
}

Domain represents the `domains` GoDaddy API endpoint

type DomainGetter

type DomainGetter interface {
	Domain(string) Domain
}

DomainGetter returns

type Gateway

type Gateway interface {
	V1Getter
}

Gateway allows you to select different versions of the GoDaddy API

func InitDevelopment

func InitDevelopment(r *http.Request) Gateway

InitDevelopment targets GoDaddy's development API (https://api.ote-godaddy.com)

func InitProduction

func InitProduction(r *http.Request) Gateway

InitProduction targets GoDaddy's production API (https://api.godaddy.com)

type Privacy

type Privacy interface {
	Purchase() *http.Request
	Delete() *http.Request
}

Privacy is a thing

type PrivacyGetter

type PrivacyGetter interface {
	Privacy() Privacy
}

PrivacyGetter makes embedding easier

type Records

type Records interface {
	GetAll() (*[]domainsEndpoint.DNSRecord, error)
}

Records is a struct builds out the `records` piece of GoDaddy's API

type RecordsGetter

type RecordsGetter interface {
	Records() Records
}

RecordsGetter makes embedding easier

type V1

type V1 interface {
	DomainGetter
}

V1 does a thing

type V1Getter

type V1Getter interface {
	V1() V1
}

V1Getter does a thing

Jump to

Keyboard shortcuts

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