clientest

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func CheckMethodHandler

func CheckMethodHandler(endpoint, wantMethod string) Handler

func CheckPayloadHandler

func CheckPayloadHandler(endpoint string, wantPayload interface{}, wantMethod string) Handler

func NewHandler

func NewHandler(endpoint string, handlerFunc func(http.ResponseWriter, *http.Request)) Handler

func PrintJsonHandler

func PrintJsonHandler(endpoint string, payload interface{}, wantMethod string) Handler

func (Handler) GetEndpoint

func (h Handler) GetEndpoint() string

func (Handler) GetHandlerFunc

func (h Handler) GetHandlerFunc() func(http.ResponseWriter, *http.Request)

Jump to

Keyboard shortcuts

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