Documentation
¶
Index ¶
- func WithVars(handler HandlerWithVars, getVarsFunc VarsFactory) http.HandlerFunc
- type App
- func (app *App) AppPage(vars map[string]string, w http.ResponseWriter, r *http.Request)
- func (app *App) JsonHandler(vars map[string]string, w http.ResponseWriter, r *http.Request)
- func (app *App) SandboxHandler(vars map[string]string, w http.ResponseWriter, r *http.Request)
- func (app *App) SvgHandler(vars map[string]string, w http.ResponseWriter, r *http.Request)
- type BlobAccessor
- type HandlerWithVars
- type Service
- type Storage
- type VarsFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithVars ¶
func WithVars(handler HandlerWithVars, getVarsFunc VarsFactory) http.HandlerFunc
Types ¶
type App ¶
func (*App) JsonHandler ¶
func (*App) SandboxHandler ¶
func (*App) SvgHandler ¶
type BlobAccessor ¶
type HandlerWithVars ¶
type Service ¶
type Service interface {
IndexPage() *template.Template
Event(eventType string, params map[string]interface{})
GetState(r *http.Request) (state metamodel.Vector, ok bool)
CheckForSnippet(hostname string, url string, referrer string) (string, bool)
CheckForModel(hostname string, url string, referrer string) (string, bool)
}
type Storage ¶
type Storage struct {
Model BlobAccessor
Snippet BlobAccessor
}
Click to show internal directories.
Click to hide internal directories.