Documentation
¶
Index ¶
- type Handler
- type Process
- func (p *Process) Args(process *process.Process) []interface{}
- func (p *Process) Bind(processName string)
- func (p *Process) DefaultMerge(defaults []interface{}, option ...bool)
- func (p *Process) Exec(process *process.Process) (interface{}, error)
- func (p *Process) Merge(newProcess *Process) *Process
- func (p *Process) MustExec(process *process.Process) interface{}
- func (p *Process) SetHandler(handler Handler) *Process
- func (p *Process) SetName(name string)
- func (p *Process) UseGuard(c *gin.Context, id string) error
- func (p *Process) WithAfter(after *hook.After) *Process
- func (p *Process) WithBefore(before *hook.Before) *Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct { Name string `json:"-"` Process string `json:"process,omitempty"` ProcessBind string `json:"bind,omitempty"` Guard string `json:"guard,omitempty"` Default []interface{} `json:"default,omitempty"` Disable bool `json:"disable,omitempty"` Before *hook.Before `json:"-"` After *hook.After `json:"-"` Handler Handler `json:"-"` }
Process action.search ...
func (*Process) DefaultMerge ¶
DefaultMerge merge the default value. option[0] the default is false, if true overwrite by the default value; option[1] the default is true, if true deep merge map and slice;
func (*Process) SetHandler ¶
SetHandler set the handler
Click to show internal directories.
Click to hide internal directories.