Documentation ¶
Index ¶
- type API
- type Client
- func (c *Client) History() ([]HistoryEntry, error)
- func (c *Client) HistoryFor(endpoint string) ([]HistoryEntry, error)
- func (c *Client) MustHistory() []HistoryEntry
- func (c *Client) MustHistoryFor(endpoint string) []HistoryEntry
- func (c *Client) MustRegister(api API)
- func (c *Client) MustRegisterAny(endpoint, httpMethod string, response interface{}, responseStatus int)
- func (c *Client) MustReset()
- func (c *Client) Register(api API) error
- func (c *Client) RegisterAny(endpoint, httpMethod string, response interface{}, responseStatus int) error
- func (c *Client) Reset() error
- func (c *Client) URL(endpoint string) string
- type HistoryEntry
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPHost string // contains filtered or unexported fields }
func NewAndReset ¶
func (*Client) History ¶
func (c *Client) History() ([]HistoryEntry, error)
func (*Client) HistoryFor ¶
func (c *Client) HistoryFor(endpoint string) ([]HistoryEntry, error)
func (*Client) MustHistory ¶
func (c *Client) MustHistory() []HistoryEntry
func (*Client) MustHistoryFor ¶
func (c *Client) MustHistoryFor(endpoint string) []HistoryEntry
func (*Client) MustRegister ¶
func (*Client) MustRegisterAny ¶
func (*Client) RegisterAny ¶
type HistoryEntry ¶
Click to show internal directories.
Click to hide internal directories.