uri

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 1 Imported by: 0

README

/pkg/uri

  • This package is "pseudo-code" for how our endpoints package will wind up looking
  • It also helps us build out GoDaddy API URL's for our requests

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain interface {
	String() string
	Records() Records
	PrivacyGetter
}

Domain is the domains endpoint

type Gateway

type Gateway interface {
	// We do not validate the `Version(v string)`
	// parameter!
	// We expect you to have already validated the
	// version string beforehand
	Version(v string) Version
}

Gateway allows you to target specific API versions

func Builder

func Builder(isproduction bool) Gateway

Builder is the start of generating an API URL string

type Privacy

type Privacy interface {
	Purchase() string
	Remove() string
}

Privacy knows how to purchase/remove privacy for a domain

type PrivacyGetter

type PrivacyGetter interface {
	Privacy() Privacy
}

PrivacyGetter simplifies embedding

type Records

type Records interface {
	ByType(rectype string) string
	ByTypeName(rectype, recname string) string
	SetValue(rectype, recname string) string
	String() string
}

Records is the `/domain/<domain>/records` endpoint

type Version

type Version interface {
	Domain(domainName string) Domain
	GoDaddyDomainAvailability(domainName string, forTransfer bool) string
	GetMyDomains() string
	PurchaseDomain() string
}

Version are the API versions

Jump to

Keyboard shortcuts

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