Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePayload ¶
ValidatePayload is 1 implementation of the closure in our controller
Types ¶
type Controller ¶
Controller holds our validation functions
func New ¶
func New() *Controller
New initializes a controller with our local validation, it can be overwritten
func (*Controller) Process ¶
func (c *Controller) Process(w http.ResponseWriter, r *http.Request)
Process is a handler that validates a post payload
Click to show internal directories.
Click to hide internal directories.