util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutBoundIP

func GetOutBoundIP() (string, error)

func PerformRequest

func PerformRequest(r http.Handler, method, path string, headers ...Header) *httptest.ResponseRecorder

func RunRequest

func RunRequest(b *testing.B, r http.Handler, method, path string, headers ...Header)

Types

type Header struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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