waitdo

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	WaitDo(*http.Request) (*http.Response, error)
}

Interface to mock out responses when integrating with other projects

type Struct

type Struct struct {
	// contains filtered or unexported fields
}

Struct structure to specify wait time in milliseconds and the mutex to make sure things can't process

func Create

func Create() *Struct

Create WaitDo given defualt parameters

func (*Struct) WaitDo

func (wd *Struct) WaitDo(req *http.Request) (res *http.Response, err error)

WaitDo does the HTTP request one at a time and waits

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL