package
0.0.0-20190815232817-43e311624f84
Repository: https://github.com/laugusti/go-sforce.git
Documentation: pkg.go.dev
# Functions
New returns a new started Server.
StaticJSONHandlerFunc creates reponse by marshalling the value as a json.
ValidateRequestHandlerFunc runs each validator again the request, then sets the response body and status.
# Structs
ConsecutiveResponseHandler allows for consective handler calls.
FormValidator validates the request form.
HeaderValidator validates headers on the request.
JSONBodyValidator validates the request body as JSON.
JSONResponseHandler writes a status code and body to the response writer.
MethodValidator validates the request method.
PathValidator validates the request path.
QueryValidator validates the request query.
Server is a wrapper for a test server.
# Interfaces
RequestValidator is an interface with a single method to validate a http request.
ResponseHandler specfies an interface with a single method to handle http responses.