renderer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Start()
	Handler() http.Handler
	PublicHandler() http.Handler
}

App of package

func New

func New(config Config, ketchupService ketchup.App, userService user.App) (App, error)

New creates new App from Config

type Config added in v1.2.0

type Config struct {
	// contains filtered or unexported fields
}

Config of package

func Flags added in v1.2.0

func Flags(fs *flag.FlagSet, prefix string) Config

Flags adds flags for configuring package

type SecurityQuestion added in v1.2.0

type SecurityQuestion struct {
	Question string
	Answer   string
}

SecurityQuestion is a question for fighting against bot

type TokenStore added in v1.2.0

type TokenStore interface {
	Store(value interface{}, duration time.Duration) string
	Load(key string) (interface{}, bool)
	Delete(key string)
	Clean(currentTime time.Time) error
}

TokenStore stores single usage token

func NewTokenStore added in v1.2.0

func NewTokenStore() TokenStore

NewTokenStore creates a new token store

Jump to

Keyboard shortcuts

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