Documentation ¶
Index ¶
- Constants
- Variables
- func SetTargetHost(host string) (string, error)
- type Action
- type Asset
- type AssetAction
- type Session
- func (s *Session) Fail(point int64, req *http.Request, err error) error
- func (s *Session) NewFileUploadRequest(uri string, params map[string]string, paramName string, asset *Asset) (*http.Request, error)
- func (s *Session) NewRequest(method, uri string, body io.Reader) (*http.Request, error)
- func (s *Session) RefreshClient()
- func (s *Session) SendRequest(req *http.Request) (*http.Response, error)
- func (s *Session) Success(point int64)
Constants ¶
View Source
const (
UserAgent = "isu6q-benchmarker/1.0.0"
)
Variables ¶
View Source
var RedirectAttemptedError = fmt.Errorf("redirect attempted")
Functions ¶
func SetTargetHost ¶
Types ¶
type Action ¶
type AssetAction ¶
func NewAssetAction ¶
func NewAssetAction(path string, asset *Asset) *AssetAction
func (*AssetAction) Play ¶
func (a *AssetAction) Play(s *Session) error
type Session ¶
type Session struct { Client *http.Client Transport *http.Transport // contains filtered or unexported fields }
func NewSession ¶
func NewSession() *Session
func (*Session) NewFileUploadRequest ¶
func (*Session) NewRequest ¶
func (*Session) RefreshClient ¶
func (s *Session) RefreshClient()
func (*Session) SendRequest ¶
Click to show internal directories.
Click to hide internal directories.