driver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2022 Furkan Ercevik ercevik.furkan@gmail.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(inFile string, authFile string) ([]Request, KeyChain)

New creates new Request structs

func Splash

func Splash(its int, reqs []Request, verbose bool, dest string, chain KeyChain)

Splash runs the specified requests concurrently with the option to count how many requests had a status code of

func Whirlpool

func Whirlpool(its int, reqs []Request, verbose bool, dest string, chain KeyChain)

Whirlpool runs the specified requests cyclically for a specified number of iterations

Types

type KeyChain

type KeyChain struct {
	User  string `yaml:"user"`
	Pass  string `yaml:"pass"`
	Token string `yaml:"token"`
}

func ReadCredentials

func ReadCredentials(filepath string) KeyChain

ReadCredentials returns a KeyChain struct from a yaml file

func (*KeyChain) String

func (c *KeyChain) String() string

type Request

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

func (Request) String

func (r Request) String() string

Jump to

Keyboard shortcuts

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