ketchup

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FuncMap for template rendering
	FuncMap = template.FuncMap{
		"frequencyImage": func(frequency model.KetchupFrequency) string {
			switch frequency {
			case model.None:
				return "bell-slash"
			case model.Weekly:
				return "calendar"
			default:
				return "clock"
			}
		},
	}
)

Functions

This section is empty.

Types

type App

type App interface {
	Handler() http.Handler
	Signup() http.Handler
	PublicTemplateFunc(http.ResponseWriter, *http.Request) (string, int, map[string]interface{}, error)
	AppTemplateFunc(http.ResponseWriter, *http.Request) (string, int, map[string]interface{}, error)
}

App of package

func New

func New(rendererApp renderer.App, ketchupService ketchup.App, userService user.App, repositoryService repository.App, redisApp redis.App) App

New creates new App from Config

type SecurityPayload added in v1.12.0

type SecurityPayload struct {
	UUID     string `json:"uuid"`
	Question string `json:"question"`
}

SecurityPayload is a question sent to the browser

type SecurityQuestion added in v1.7.0

type SecurityQuestion struct {
	Question string
	Answer   string
}

SecurityQuestion is a question for fighting against bot

Jump to

Keyboard shortcuts

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