Documentation ¶
Index ¶
- Constants
- Variables
- type ChanContext
- type Context
- func (c *Context) Data() interface{}
- func (c *Context) Err() error
- func (c *Context) FlowId() string
- func (c *Context) GetCache(key string) (value interface{})
- func (c *Context) SetCache(key string, value interface{})
- func (c *Context) SetData(data interface{})
- func (c *Context) SetErr(err error)
- func (c *Context) String() string
- type Flow
- type Func
- type FuncNode
- type Node
- type NodeData
- type Option
- type Options
Constants ¶
View Source
const DefaultAntsPoolSize = 10000
DefaultAntsPoolSize The default capacity of the default goroutine pool
Variables ¶
View Source
var (
Error = errors.New("error")
)
Functions ¶
This section is empty.
Types ¶
type Context ¶ added in v0.0.5
type Context struct {
// contains filtered or unexported fields
}
Context 流处理上下文
func (*Context) SetData ¶ added in v0.0.6
func (c *Context) SetData(data interface{})
SetData Change the data
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
Flow Implements a flow
type Node ¶
type Node interface { Next() Node // 子计算流 Run(in *Context) // To(funcNode Func) Node ToNode(node Node) Node }
Node 实现该接口的是计算流
type NodeData ¶ added in v0.1.0
type NodeData struct {
// contains filtered or unexported fields
}
NodeData Node data
type Option ¶ added in v0.1.0
type Option func(options *Options)
func WithDisablePool ¶ added in v0.1.0
func WithDisablePool() Option
WithDisablePool return a Option with pool closed
func WithEnablePool ¶ added in v0.1.0
WithEnablePool return a Option
func WithOption ¶ added in v0.1.0
WithOption return a Option interface
func WithPoolSize ¶ added in v0.1.0
WithPoolSize return a Option that set pool size
Click to show internal directories.
Click to hide internal directories.