Documentation ¶
Index ¶
- func GetElementKeysPath(key string, element string) string
- func GetKeysPath(key string) string
- func ListKeysPath() string
- func RemoveKeysPath(key string) string
- func SetKeysPath(key string) string
- func UpdateKeysPath(key string) string
- type Client
- func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)
- func (c *Client) GetElementKeys(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) GetKeys(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListKeys(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) NewGetElementKeysRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewGetKeysRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListKeysRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewRemoveKeysRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewSetKeysRequest(ctx context.Context, path string, payload SetKeysPayload, ttl *int, ...) (*http.Request, error)
- func (c *Client) NewUpdateKeysRequest(ctx context.Context, path string, payload UpdateKeysPayload, ...) (*http.Request, error)
- func (c *Client) RemoveKeys(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) SetKeys(ctx context.Context, path string, payload SetKeysPayload, ttl *int, ...) (*http.Response, error)
- func (c *Client) UpdateKeys(ctx context.Context, path string, payload UpdateKeysPayload, ...) (*http.Response, error)
- type SetKeysPayload
- type UpdateKeysPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetElementKeysPath ¶
GetElementKeysPath computes a request path to the getElement action of keys.
func GetKeysPath ¶
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 ¶
RemoveKeysPath computes a request path to the remove action of keys.
func SetKeysPath ¶
SetKeysPath computes a request path to the set action of keys.
func UpdateKeysPath ¶
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 (*Client) DecodeErrorResponse ¶
DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.
func (*Client) GetElementKeys ¶
Get the element of the list or dict value stored at key.
func (*Client) NewGetElementKeysRequest ¶
NewGetElementKeysRequest create the request corresponding to the getElement action endpoint of the keys resource.
func (*Client) NewGetKeysRequest ¶
NewGetKeysRequest create the request corresponding to the get action endpoint of the keys resource.
func (*Client) NewListKeysRequest ¶
NewListKeysRequest create the request corresponding to the list action endpoint of the keys resource.
func (*Client) NewRemoveKeysRequest ¶
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 ¶
Delete 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.