Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIBuilder ¶
type APIBuilder struct {
// contains filtered or unexported fields
}
func (*APIBuilder) Build ¶
func (b *APIBuilder) Build() *httptest.Server
Build returns new http.Server hosting API mocks
func (*APIBuilder) HttpReqMock ¶
func (b *APIBuilder) HttpReqMock(endpoint string, code int, response []byte, wait time.Duration) *APIBuilder
func (*APIBuilder) WithHandler ¶
func (b *APIBuilder) WithHandler(pattern string, handler http.HandlerFunc) *APIBuilder
Click to show internal directories.
Click to hide internal directories.