Documentation ¶
Index ¶
- Constants
- func DirMd5(dirPath string) string
- func FileMd5(filePath string) string
- func JsonEqual(v1 any, v2 any) bool
- func StartTestCustomServer() net.Listener
- func StartTestErrorServer() net.Listener
- func StartTestFileServer() net.Listener
- func StartTestPostServer() net.Listener
- func StartTestRetryServer() net.Listener
- func StartTestSlowFileServer(delay time.Duration) net.Listener
- func ToJson(v interface{}) string
- type SlowFileServer
Constants ¶
View Source
const ( BuildName = "build.data" BuildSize = 200 * 1024 * 1024 Dir = "./" BuildFile = Dir + BuildName DownloadName = "download.data" DownloadFile = Dir + DownloadName )
Variables ¶
This section is empty.
Functions ¶
func StartTestCustomServer ¶ added in v1.3.3
func StartTestErrorServer ¶
func StartTestFileServer ¶
func StartTestPostServer ¶
func StartTestRetryServer ¶
Types ¶
type SlowFileServer ¶
type SlowFileServer struct {
// contains filtered or unexported fields
}
func (*SlowFileServer) ServeHTTP ¶
func (s *SlowFileServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.