adapter

package
v0.0.0-...-cee7a81 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRouterService

type IRouterService interface {
	Chain(c ...alice.Constructor) []alice.Constructor
	ChainHandler(h http.Handler, c ...alice.Constructor) http.Handler
	Delete(path string, fn http.HandlerFunc, c ...alice.Constructor)
	Get(path string, fn http.HandlerFunc, c ...alice.Constructor)
	Patch(path string, fn http.HandlerFunc, c ...alice.Constructor)
	Post(path string, fn http.HandlerFunc, c ...alice.Constructor)
	Put(path string, fn http.HandlerFunc, c ...alice.Constructor)
}

IRouterService is the interface for page routing.

type IViewService

type IViewService interface {
	Render(w http.ResponseWriter, r *http.Request) error
	SetFolder(relativeFolderPath string)
	SetExtension(fileExtension string)
	SetBaseTemplate(relativeFilePath string)
	SetTemplate(relativeFilePath string)

	AddVar(key string, value interface{})
	DelVar(key string)
	GetVar(key string) interface{}
	SetVars(vars map[string]interface{})
}

IViewService is the interface for HTML templates.

type Passhash

type Passhash struct{}

Passhash implements the password hashing system.

func (*Passhash) Hash

func (s *Passhash) Hash(password string) (string, error)

Hash returns a hashed string or an error.

func (*Passhash) Match

func (s *Passhash) Match(hash, password string) bool

Match returns true if the hash matches the password.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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