client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveResolvePath

func ResolveResolvePath(hostname string) string

ResolveResolvePath computes a request path to the resolve action of resolve.

Types

type AtqDnsresolution

type AtqDnsresolution struct {
	// IP
	IP *string `form:"ip,omitempty" json:"ip,omitempty" xml:"ip,omitempty"`
}

Contents of DNS Resolution (default view)

Identifier: application/atq.dnsresolution+json; view=default

type Client

type Client struct {
	*goaclient.Client
	Encoder *goa.HTTPEncoder
	Decoder *goa.HTTPDecoder
}

Client is the DNS Resolver service client.

func New

func New(c goaclient.Doer) *Client

New instantiates the client.

func (*Client) DecodeAtqDnsresolution

func (c *Client) DecodeAtqDnsresolution(resp *http.Response) (*AtqDnsresolution, error)

DecodeAtqDnsresolution decodes the AtqDnsresolution instance encoded in resp body.

func (*Client) NewResolveResolveRequest

func (c *Client) NewResolveResolveRequest(ctx context.Context, path string) (*http.Request, error)

NewResolveResolveRequest create the request corresponding to the resolve action endpoint of the resolve resource.

func (*Client) ResolveResolve

func (c *Client) ResolveResolve(ctx context.Context, path string) (*http.Response, error)

Resolves IPs from a specified hostname

Jump to

Keyboard shortcuts

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