Documentation ¶ Index ¶ func New(c []Call) api.Caller type Call type Mock func (m *Mock) Do(verb, endpoint string, body io.Reader, out interface{}) error func (m *Mock) Request(verb, endpoint string, body io.Reader) (*http.Response, error) type MockError func (e *MockError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(c []Call) api.Caller Types ¶ type Call ¶ type Call struct { Verb string Endpoint string Data any Error error Response *http.Response } type Mock ¶ type Mock struct { Calls []Call // contains filtered or unexported fields } func (*Mock) Do ¶ func (m *Mock) Do(verb, endpoint string, body io.Reader, out interface{}) error func (*Mock) Request ¶ func (m *Mock) Request(verb, endpoint string, body io.Reader) (*http.Response, error) type MockError ¶ type MockError struct { // contains filtered or unexported fields } func (*MockError) Error ¶ func (e *MockError) Error() string Source Files ¶ View all Source files mock.go Click to show internal directories. Click to hide internal directories.