Documentation ¶
Index ¶
- Constants
- type ConcurrencyHandlers
- type HandleCtxFunc
- type HandleFunc
- type Handler
- type Handlers
- func (m *Handlers) AddHandler(handler ...Handler)
- func (m *Handlers) ConcurrencyRunCtxHandler(ctx ICtx) (err error)
- func (m *Handlers) ConcurrencyRunHandler() (err error)
- func (m *Handlers) FormatCost() (str string)
- func (m *Handlers) FormatMaxCost() (str string)
- func (s Handlers) Len() int
- func (s Handlers) Less(i, j int) bool
- func (m *Handlers) RunCtxHandler(ctx ICtx) (err error)
- func (m *Handlers) RunHandler() (err error)
- func (m *Handlers) RunReflectValueCall() (err error)
- func (s Handlers) Swap(i, j int)
- type ICtx
- type IParam
- type IProcessor
- type Link
- func (l *Link) CheckSameName() (err error)
- func (l *Link) FormatCost() (str string)
- func (l *Link) GetAllProcessorCost() (mapCost map[string]int64)
- func (l *Link) Handle(input IParam) (err error)
- func (l *Link) HandleMap(input map[string]interface{}) (err error)
- func (l *Link) HandleRpc(input []byte) (err error)
- func (link *Link) SetNextItem(linkItem *LinkItem)
- type LinkItem
Constants ¶
View Source
const ( PROCESS_STATUS_UNDO = iota PROCESS_STATUS_DOING PROCESS_STATUS_OK PROCESS_STATUS_FAIL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrencyHandlers ¶
func NewConcurrencyHandlers ¶
func NewConcurrencyHandlers(concurrency bool, handlers Handlers) *ConcurrencyHandlers
func (*ConcurrencyHandlers) FormatCost ¶
func (m *ConcurrencyHandlers) FormatCost() (str string)
func (*ConcurrencyHandlers) RunCtxHandler ¶
func (m *ConcurrencyHandlers) RunCtxHandler(ctx ICtx) (err error)
func (*ConcurrencyHandlers) RunHandler ¶
func (m *ConcurrencyHandlers) RunHandler() (err error)
type HandleCtxFunc ¶
type HandleFunc ¶
type HandleFunc func() error
type Handler ¶
type Handler struct { IsPass bool Name string Cost int64 Handle HandleFunc CtxHandle HandleCtxFunc ReflectValue reflect.Value Status int }
func NewCtxHandler ¶
func NewCtxHandler(isPass bool, name string, funcHandle HandleCtxFunc) Handler
func NewHandler ¶
func NewHandler(isPass bool, name string, funcHandle HandleFunc) Handler
type Handlers ¶
type Handlers []Handler
func (*Handlers) AddHandler ¶
func (*Handlers) ConcurrencyRunCtxHandler ¶
func (*Handlers) ConcurrencyRunHandler ¶
func (*Handlers) FormatCost ¶
func (*Handlers) FormatMaxCost ¶
func (*Handlers) RunCtxHandler ¶
func (*Handlers) RunHandler ¶
func (*Handlers) RunReflectValueCall ¶
type IProcessor ¶
type Link ¶
func (*Link) CheckSameName ¶
func (*Link) FormatCost ¶
func (*Link) GetAllProcessorCost ¶
func (*Link) SetNextItem ¶
type LinkItem ¶
type LinkItem struct { IsPass bool Id int Name string Cost int64 Processor IProcessor Status int Next *LinkItem }
ctx->ctx->ctx
func NewLinkItem ¶
func NewLinkItem(isPass bool, name string, processor IProcessor) (linkItem *LinkItem)
Click to show internal directories.
Click to hide internal directories.