Documentation ¶
Index ¶
- Constants
- func SetTargetHost(host string) (*url.URL, 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) SendRequest(req *http.Request) (*http.Response, error)
- func (s *Session) Success(point int64)
- type UploadAction
Constants ¶
View Source
const (
UserAgent = "benchmarker"
)
Variables ¶
This section is empty.
Functions ¶
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) SendRequest ¶
type UploadAction ¶
func NewUploadAction ¶
func NewUploadAction(method, path, uploadParamname string) *UploadAction
func (*UploadAction) Play ¶
func (a *UploadAction) Play(s *Session) error
Click to show internal directories.
Click to hide internal directories.