Documentation ¶
Overview ¶
Package hello provides a hello page for an Ambient app.
Index ¶
- Constants
- func Get(r *http.Request) string
- func Set(r *http.Request, value string) *http.Request
- type ContextKey
- type Plugin
- func (p *Plugin) Assets() ([]ambient.Asset, ambient.FileSystemReader)
- func (p *Plugin) Enable(toolkit *ambient.Toolkit) error
- func (p *Plugin) FuncMap() func(r *http.Request) template.FuncMap
- func (p *Plugin) GrantRequests() []ambient.GrantRequest
- func (p *Plugin) Middleware() []func(next http.Handler) http.Handler
- func (p *Plugin) PluginName() string
- func (p *Plugin) PluginVersion() string
- func (p *Plugin) Routes()
- func (p *Plugin) Settings() []ambient.Setting
Constants ¶
View Source
const ( // Username allows user to set the login username. Username = "Username" // SafeMode is a boolean value. SafeMode = "Safe Mode" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
*ambient.PluginBase
}
Plugin represents an Ambient plugin.
func (*Plugin) Assets ¶
func (p *Plugin) Assets() ([]ambient.Asset, ambient.FileSystemReader)
Assets returns a list of assets and an embedded filesystem.
func (*Plugin) GrantRequests ¶
func (p *Plugin) GrantRequests() []ambient.GrantRequest
GrantRequests returns a list of grants requested by the plugin.
func (*Plugin) Middleware ¶
Middleware returns router middleware.
func (*Plugin) PluginName ¶
PluginName returns the plugin name.
func (*Plugin) PluginVersion ¶
PluginVersion returns the plugin version.
Click to show internal directories.
Click to hide internal directories.