testutils

package
v0.0.0-...-1c3c969 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthPost

func AuthPost(f http.HandlerFunc, path string,
	payload string, secret string) (status int, err error)

The AuthPost function calls the provided fucntion, f, to POST the given payload to the server (directly, without having to start up an actual web server) and provides a secret for HMAC checking

func Post

func Post(f http.HandlerFunc, path string, payload string) (status int, err error)

The Post function calls the provided function, f, to POST the given payload to the server (directly, without having to start up an actual web server).

Types

This section is empty.

Jump to

Keyboard shortcuts

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