client

package
v0.0.0-...-cdf3d8e Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetElementKeysPath

func GetElementKeysPath(key string, element string) string

GetElementKeysPath computes a request path to the getElement action of keys.

func GetKeysPath

func GetKeysPath(key string) string

GetKeysPath computes a request path to the get action of keys.

func ListKeysPath

func ListKeysPath() string

ListKeysPath computes a request path to the list action of keys.

func RemoveKeysPath

func RemoveKeysPath(key string) string

RemoveKeysPath computes a request path to the remove action of keys.

func SetKeysPath

func SetKeysPath(key string) string

SetKeysPath computes a request path to the set action of keys.

func UpdateKeysPath

func UpdateKeysPath(key string) string

UpdateKeysPath computes a request path to the update action of keys.

Types

type Client

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

Client is the Margo API service client.

func New

func New(c goaclient.Doer) *Client

New instantiates the client.

func (*Client) DecodeErrorResponse

func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)

DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.

func (*Client) GetElementKeys

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

Get the element of the list or dict value stored at key.

func (*Client) GetKeys

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

Get the value of a key.

func (*Client) ListKeys

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

Retrieve all keys.

func (*Client) NewGetElementKeysRequest

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

NewGetElementKeysRequest create the request corresponding to the getElement action endpoint of the keys resource.

func (*Client) NewGetKeysRequest

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

NewGetKeysRequest create the request corresponding to the get action endpoint of the keys resource.

func (*Client) NewListKeysRequest

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

NewListKeysRequest create the request corresponding to the list action endpoint of the keys resource.

func (*Client) NewRemoveKeysRequest

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

NewRemoveKeysRequest create the request corresponding to the remove action endpoint of the keys resource.

func (*Client) NewSetKeysRequest

func (c *Client) NewSetKeysRequest(ctx context.Context, path string, payload SetKeysPayload, ttl *int, contentType string) (*http.Request, error)

NewSetKeysRequest create the request corresponding to the set action endpoint of the keys resource.

func (*Client) NewUpdateKeysRequest

func (c *Client) NewUpdateKeysRequest(ctx context.Context, path string, payload UpdateKeysPayload, contentType string) (*http.Request, error)

NewUpdateKeysRequest create the request corresponding to the update action endpoint of the keys resource.

func (*Client) RemoveKeys

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

Delete a key.

func (*Client) SetKeys

func (c *Client) SetKeys(ctx context.Context, path string, payload SetKeysPayload, ttl *int, contentType string) (*http.Response, error)

Set the value of a key.

func (*Client) UpdateKeys

func (c *Client) UpdateKeys(ctx context.Context, path string, payload UpdateKeysPayload, contentType string) (*http.Response, error)

Update the value of a key.

type SetKeysPayload

type SetKeysPayload interface{}

SetKeysPayload is the keys set action payload.

type UpdateKeysPayload

type UpdateKeysPayload interface{}

UpdateKeysPayload is the keys update action payload.

Jump to

Keyboard shortcuts

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