handler

package
v0.0.0-...-5678632 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Echo = hal.Respond(`echo (.+)`, func(res *hal.Response) error {
	return res.Reply(res.Match[1])
})

Echo is an example of a simple handler.

View Source
var Ping = &ping{}

Ping exports

View Source
var TableFlip = &hal.Handler{
	Method:  hal.HEAR,
	Pattern: `tableflip`,
	Run: func(res *hal.Response) error {
		return res.Send(`(╯°□°)╯︵ ┻━┻`)
	},
}

TableFlip is an example of a Handler

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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