handlers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFeedback added in v0.2.0

func AddFeedback(to, from string, isPositive bool, renderer interfaces.Renderer, emailSender email.Sender) http.HandlerFunc

AddFeedback handles a users feedback request and sends a message to slack

func FeedbackThanks added in v0.2.0

func FeedbackThanks(renderer interfaces.Renderer) http.HandlerFunc

FeedbackThanks loads the Feedback Thank you page

func GetFeedback added in v0.2.0

func GetFeedback(renderer interfaces.Renderer) http.HandlerFunc

GetFeedback handles the loading of a feedback page

Types

type ClientError

type ClientError interface {
	Error() string
	Code() int
}

ClientError is an interface that can be used to retrieve the status code if a client has errored

type Feedback added in v0.2.0

type Feedback struct {
	Purpose          string `schema:"purpose"`
	Type             string `schema:"type"`
	URI              string `schema:":uri"`
	URL              string `schema:"url"`
	Description      string `schema:"description"`
	Name             string `schema:"name"`
	Email            string `schema:"email"`
	FeedbackFormType string `schema:"feedback-form-type"`
}

Feedback represents a user's feedback

Jump to

Keyboard shortcuts

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