tests

package
v0.0.0-...-318ce3a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestToken

func GenerateTestToken(t, username string, exp int64) (string, error)

Types

type Response

type Response struct {
	Content string
	Status  int
}

func DoDeleteWithJwt

func DoDeleteWithJwt(url, name string) (*Response, error)

func DoGet

func DoGet(url string) (*Response, error)

func DoGetWithJwt

func DoGetWithJwt(url, jwt string) (*Response, error)

func DoPatchWithJwt

func DoPatchWithJwt(url, name string, body interface{}) (*Response, error)

func DoPost

func DoPost(url string, body interface{}) (*Response, error)

func DoPostWithJwt

func DoPostWithJwt(url, name string, body interface{}) (*Response, error)

func DoRequest

func DoRequest(req *http.Request) (*Response, error)

Jump to

Keyboard shortcuts

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