Documentation ¶
Overview ¶
Package logics request logical scheduler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Classes ¶ added in v1.0.1
type Classes interface {
Build(i iris.Context, logic Logic) (logical Logical, name string, err error)
}
var Class Classes
type Logic ¶
type Logic func() Logical
Logic is a constructor func used to creates an instance of a Logical.
1. Define a constructor:
func New() framework.Logical { return &YourLogic{} }
2. Use logic in controller or handler.
framework.Do(i, New)
type LogicalAfter ¶
LogicalAfter is an optional hook use to repair response result if implemented.
type LogicalBefore ¶
LogicalBefore is an optional hook used to validate request body if implemented. Skip logical runner hook and chained hooks if error returned.
type LogicalClassName ¶ added in v1.0.1
type LogicalClassName interface {
SetClassName(name string)
}
type LogicalReleaser ¶
type LogicalReleaser interface {
Release()
}
LogicalReleaser is an optional hook used to release Logical instance to pool if implemented.
Click to show internal directories.
Click to hide internal directories.