Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHeaders ¶
DefaultHeaders returns a set of Headers that apply to all mixers
func Write ¶ added in v1.10.7
func Write(w http.ResponseWriter, m Mixer) error
Write will set Headers and Write the response based on the Mixer
func WriteStatus ¶ added in v1.10.7
func WriteStatus(w http.ResponseWriter, status int, m Mixer) error
Write will set Headers and Write the response based on the Mixer
Types ¶
type Bag ¶ added in v1.19.6
func NewDataBag ¶ added in v1.19.7
func NewDataBag(data interface{}) Bag
type Mixer ¶
Mixer is used by the drx.ite to ApplyHeaders and Write the Response from the Reader
type MixerFactory ¶ added in v1.10.7
type MixerFactory interface { AddMenu(menu *menu.Menu) Create(r *http.Request, title, path string, data Bag) Mixer AddModifier(mod ModFunc) }
func NewPageFactory ¶ added in v1.19.6
func NewPageFactory(files *template.Template, mods ...ModFunc) MixerFactory
type ModFunc ¶ added in v1.16.3
ModFunc can be used to add additional values to the view bag before rendering
func EndpointMod ¶ added in v1.16.3
func IdentityMod ¶ added in v1.16.3
Click to show internal directories.
Click to hide internal directories.