Documentation
¶
Index ¶
- func DoDELETE(url string) *http.Request
- func DoGET(url string) *http.Request
- func DoPOST(url, jsonReq string) *http.Request
- func DoPUT(url, jsonReq string) *http.Request
- type HttpClientTest
- type HttpServerTest
- func OnDELETE(url string, fn echo.HandlerFunc) *HttpServerTest
- func OnGET(url string, fn echo.HandlerFunc) *HttpServerTest
- func OnPATCH(url string, fn echo.HandlerFunc) *HttpServerTest
- func OnPOST(url string, fn echo.HandlerFunc) *HttpServerTest
- func OnPUT(url string, fn echo.HandlerFunc) *HttpServerTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpClientTest ¶
type HttpClientTest struct { Cookie *http.Cookie Token string Username string Password string // contains filtered or unexported fields }
func NewClient ¶
func NewClient() HttpClientTest
func WithBasicAuth ¶
func WithBasicAuth(username, password string) HttpClientTest
func WithCookie ¶
func WithCookie(name, value string) HttpClientTest
func WithTokenInHeader ¶
func WithTokenInHeader(token string) HttpClientTest
func (HttpClientTest) WithBaseURL ¶
func (h HttpClientTest) WithBaseURL(url string) HttpClientTest
type HttpServerTest ¶
type HttpServerTest struct {
// contains filtered or unexported fields
}
func OnDELETE ¶
func OnDELETE(url string, fn echo.HandlerFunc) *HttpServerTest
func OnGET ¶
func OnGET(url string, fn echo.HandlerFunc) *HttpServerTest
func OnPATCH ¶
func OnPATCH(url string, fn echo.HandlerFunc) *HttpServerTest
func OnPOST ¶
func OnPOST(url string, fn echo.HandlerFunc) *HttpServerTest
func OnPUT ¶
func OnPUT(url string, fn echo.HandlerFunc) *HttpServerTest
func (*HttpServerTest) Use ¶
func (h *HttpServerTest) Use(mid echo.MiddlewareFunc) *HttpServerTest
Click to show internal directories.
Click to hide internal directories.