Documentation ¶
Index ¶
Constants ¶
View Source
const Version = `0.0.1`
Version is the current version of pythia
Variables ¶
This section is empty.
Functions ¶
func DumpRequest ¶
DumpRequest to string
Types ¶
type Options ¶
type Options struct { Retries int Threads int Timeout int InputFile string Silent bool Version bool Verbose bool NoColor bool URL string }
Options contains configuration options for chaos client.
func GetOptions ¶
func GetOptions() *Options
func ParseOptions ¶
func ParseOptions() *Options
ParseOptions parses the command line options for application
type Pythia ¶
type Pythia struct { Options *Options // contains filtered or unexported fields }
HTTPX represent an instance of the library client
func (*Pythia) Do ¶
func (py *Pythia) Do(req *retryablehttp.Request) (*Response, error)
Do http request
func (*Pythia) NewRequest ¶
func (h *Pythia) NewRequest(method, URL string) (req *retryablehttp.Request, err error)
NewRequest from url
Click to show internal directories.
Click to hide internal directories.