enom

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 13 Imported by: 0

README

go-enom-client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDomain

func ParseDomain(domain string) (string, string)

func RandomString

func RandomString(length int) string

func StringWithCharset

func StringWithCharset(length int, charset string) string

Types

type Client

type Client struct {
	Session *Session
}

func (Client) DoRequest

func (c Client) DoRequest(command *Command) ([]byte, error)

type Command

type Command struct {
	Name string
	Args url.Values
}

func (*Command) AddParam

func (c *Command) AddParam(key string, value string)

func (*Command) SetDefaultArgs

func (c *Command) SetDefaultArgs(session *Session)

func (*Command) ToParams

func (c *Command) ToParams() string

type Session

type Session struct {
	ResellerURL string
	ResellerID  string
	Password    string
}

func CreateSession

func CreateSession(resellerURL string, resellerID string, password string) Session

CreateSession will create a Enom sessions for services

func (Session) CheckNSStatus added in v0.1.3

func (s Session) CheckNSStatus(domain string, host string) (response.CheckNSStatus, error)

CheckNSStatus Retrieve information about a name server

func (Session) Contacts added in v0.1.3

func (s Session) Contacts(domain string) (response.Contacts, error)

Contacts Get all contact data for a domain name

func (Session) CreateCommand

func (s Session) CreateCommand(commandName string) *Command

func (Session) CreateTransferOrder added in v0.1.3

func (s Session) CreateTransferOrder(domain string, authInfo string) (response.CreateTransferOrder, error)

CreateTransferOrder Transfer domains into an account

func (Session) Delete added in v0.1.3

func (s Session) Delete(domain string) (response.Delete, error)

Delete delete domain with in 5 days of purchase (Will not working on all accounts)

func (Session) DomainCheck

func (s Session) DomainCheck(domain string) (response.DomainCheck, error)

DomainCheck Check the availability of a domain name

func (Session) GetHosts added in v0.1.3

func (s Session) GetHosts(domain string) (response.GetHosts, error)

GetHosts Get host records for a domain name.

func (Session) Info added in v0.1.3

func (s Session) Info(domain string) (response.DomainInfo, error)

Info Get information about a single domain name

func (Session) NameSpinner added in v0.1.3

NameSpinner List related domain names

func (Session) Purchase added in v0.1.3

func (s Session) Purchase(domain string) (response.DomainPurchase, error)

Purchase purchase a domain name

func (Session) RegisterNameserver added in v0.1.3

func (s Session) RegisterNameserver(domain string, name string, ip string) (response.RegisterNameserver, error)

RegisterNameserver Register a domain name server

func (Session) Renew added in v0.1.3

func (s Session) Renew(domain string, period string) (response.Extend, error)

Renew Extend (renew) the registration period for a domain name

func (Session) SetContact added in v0.1.3

func (s Session) SetContact(domain string, contactData map[string]string) (response.Contacts, error)

SetContact Update contact information for a domain name

func (Session) SetHosts added in v0.1.3

SetHosts Set host records for a domain name

func (Session) SetRegLock added in v0.1.3

func (s Session) SetRegLock(domain string, enable bool) (response.DomainInfo, error)

SetRegLock Set the registrar lock for a domain name

func (Session) TldDetails added in v0.1.3

func (s Session) TldDetails(tld string) (response.TldDetails, error)

TldDetails Retrieve TLD characteristics in detail for a specified TLD.

func (Session) TldList added in v0.1.3

func (s Session) TldList() (response.TldList, error)

TldList Retrieve a list of the TLDs that you offer.

func (Session) TransferOrderDetail added in v0.1.3

func (s Session) TransferOrderDetail(id string) (response.TransferOrderDetail, error)

TransferOrderDetail Get information for a single domain on a transfer order

func (Session) TransferOrderReview added in v0.1.3

func (s Session) TransferOrderReview(id string) (response.TransferOrderReview, error)

TransferOrderReview Retrieve information on a transfer order

func (Session) TransferOrderStatuses added in v0.1.3

func (s Session) TransferOrderStatuses() (response.TransferOrderStatuses, error)

TransferOrderStatuses Get a list of orders including Closed for the last 6 months

func (Session) UpdateNameserver added in v0.1.3

func (s Session) UpdateNameserver(domain string, name string, oldIp string, newIp string) (response.UpdateNameserver, error)

UpdateNameserver Change the IP address of a name server in the Registry’s records

func (Session) WhoisContact added in v0.1.3

func (s Session) WhoisContact(domain string) (response.WhoisContact, error)

WhoisContact Get Whois contact information for a domain name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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