storjscantest

package
v1.93.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(r *http.Request, identifier, secret string) error

CheckAuth checks request auth headers against provided id and secret.

func ServeJSONError

func ServeJSONError(t *testing.T, w http.ResponseWriter, status int, err error)

ServeJSONError serves JSON error to response writer.

func ServePayments

func ServePayments(t *testing.T, w http.ResponseWriter, from int64, block storjscan.Header, payments []storjscan.Payment)

ServePayments serves payments to response writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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