Documentation
¶
Index ¶
Constants ¶
View Source
const ( File = iota String TempRedirect Redirect JSON )
Variables ¶
View Source
var HandlerRegistry = make(map[Type]Handler)
Functions ¶
This section is empty.
Types ¶
type FileHandler ¶ added in v1.6.0
type FileHandler struct{}
func NewFile ¶ added in v1.6.0
func NewFile() *FileHandler
type JSONHandler ¶ added in v1.6.0
type JSONHandler struct{}
func NewJSON ¶ added in v1.6.0
func NewJSON() *JSONHandler
type RedirectHandler ¶ added in v1.6.0
type RedirectHandler struct {
Permanent bool
}
func NewRedirect ¶ added in v1.6.0
func NewRedirect() *RedirectHandler
func NewTempRedirect ¶ added in v1.6.0
func NewTempRedirect() *RedirectHandler
type StringHandler ¶ added in v1.6.0
type StringHandler struct{}
func NewString ¶ added in v1.6.0
func NewString() *StringHandler
Click to show internal directories.
Click to hide internal directories.