handlers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 {
	Render       interfaces.Renderer
	CacheService *cacheHelper.Helper
	Config       *config.Config
	EmailSender  email.Sender
}

Feedback represents the handlers required to provide feedback

func NewFeedback added in v1.0.0

func NewFeedback(rc interfaces.Renderer, c *cacheHelper.Helper, cfg *config.Config, es email.Sender) *Feedback

NewFeedback creates a new instance of Feedback

func (*Feedback) AddFeedback added in v1.0.0

func (f *Feedback) AddFeedback() http.HandlerFunc

AddFeedback handles a users feedback request

func (*Feedback) FeedbackThanks added in v1.0.0

func (f *Feedback) FeedbackThanks() http.HandlerFunc

FeedbackThanks loads the Feedback Thank you page

func (*Feedback) GetFeedback added in v1.0.0

func (f *Feedback) GetFeedback() http.HandlerFunc

GetFeedback handles the loading of a feedback page

Jump to

Keyboard shortcuts

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