dairytest

package
v0.0.0-...-ade036e Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Requester

type Requester struct {
	http.Client
	AdminAuthCookie   *http.Cookie
	RegularAuthCookie *http.Cookie
}

Requester is what we use to make requests

func (*Requester) ExecuteRequestAsAdmin

func (r *Requester) ExecuteRequestAsAdmin(req *http.Request) (*http.Response, error)

ExecuteRequestAsAdmin takes a regular prepared Request struct and adds our admin Auth cookie before making the request.

func (*Requester) ExecuteRequestAsRegularUser

func (r *Requester) ExecuteRequestAsRegularUser(req *http.Request) (*http.Response, error)

ExecuteRequestAsRegularUser takes a regular prepared Request struct and adds our regular Auth cookie before making the request.

Jump to

Keyboard shortcuts

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