Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { ID string `json:"id"` Path string `json:"path"` QueryString string `json:"query_string"` }
func NewContext ¶
type JSEngine ¶
type JSEngine struct { *eventloop.EventLoop // Maximum render time Timeout time.Duration // contains filtered or unexported fields }
func NewJSEngine ¶
func NewJSEngine(bundle *ScriptBundle, timeout time.Duration) (*JSEngine, error)
type PoolPrefork ¶
type PoolPrefork struct {
// contains filtered or unexported fields
}
func NewPoolPrefork ¶
func NewPoolPrefork(bundle *ScriptBundle, timeout time.Duration, size uint) *PoolPrefork
func (*PoolPrefork) Drop ¶
func (p *PoolPrefork) Drop(je *JSEngine)
func (*PoolPrefork) Get ¶
func (p *PoolPrefork) Get() *JSEngine
func (*PoolPrefork) Put ¶
func (p *PoolPrefork) Put(je *JSEngine)
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer implement http.Handler
func NewRenderer ¶
func NewRenderer(bundle *ScriptBundle, tmpl *template.Template) *Renderer
type Result ¶
type Result struct { ContextID string `json:"id"` Title string `json:"title,omitempty"` Meta string `json:"meta,omitempty"` Body string `json:"body"` RenderTime time.Duration `json:"-"` }
func NewResultFromMap ¶
type ScriptBundle ¶
Click to show internal directories.
Click to hide internal directories.