Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface {
Register(ctx context.Context, router *http.ServeMux, session Middleware)
}
type Middleware ¶
type Middleware interface { CreateSession(ctx context.Context, w http.ResponseWriter, id int, method string) object.Status Skip(ctx context.Context, fn func(context.Context, Middleware, http.ResponseWriter, *http.Request)) http.HandlerFunc CheckSession(ctx context.Context, fn func(context.Context, *object.Cookie, object.Status, http.ResponseWriter, *http.Request)) http.HandlerFunc EndSession(w http.ResponseWriter) object.Status }
type ParseExecute ¶
type ParseExecute struct { PathTmpl []string DefineTmpl string Data map[string]interface{} // contains filtered or unexported fields }
func NewParseExecute ¶
func NewParseExecute(define string) *ParseExecute
func (*ParseExecute) Execute ¶
func (pe *ParseExecute) Execute(w http.ResponseWriter, code int)
func (*ParseExecute) Parse ¶
func (pe *ParseExecute) Parse() (*ParseExecute, object.Status)
Click to show internal directories.
Click to hide internal directories.