registrar

package
v0.0.0-...-45d60b1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUserAgent = "registrar-go/0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id    int    `json:"id"`
	Email string `json:"email"`
}

type AccountParams

type AccountParams struct {
}

type AccountsService

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

func (*AccountsService) Current

func (s *AccountsService) Current(params *AccountParams) (*Account, error)

type Client

type Client struct {
	BaseURL   *url.URL
	UserAgent string

	Accounts *AccountsService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL string, httpClient *http.Client) *Client

func (*Client) Call

func (c *Client) Call(method, urlStr string, body interface{}, v interface{}) error

func (*Client) Do

func (c *Client) Do(req *http.Request, v interface{}) error

func (*Client) NewRequest

func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)

Jump to

Keyboard shortcuts

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