web

package
v0.0.0-...-8a04328 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: GPL-3.0, GPL-3.0-only Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteRequest

func ExecuteRequest(r *http.Request) *httptest.ResponseRecorder

ExecuteRequest is a test helper to fake a request. Use it as follows:

r := httptest.NewRequest("GET", "/api/v1/internal/my/songs", nil)
resp := ExecuteRequest(r)

Types

This section is empty.

Jump to

Keyboard shortcuts

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