Documentation ¶
Index ¶
Constants ¶
View Source
const (
PluginsRoot = "ignite.ants.plugins"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware interface { // Before method you perform before the task Before(ctx context.Context) context.Context // After method you perform after the task After(ctx context.Context) }
Middleware interface for task middlewares
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper
func NewWrapper ¶
func NewWrapper(pool *ants.Pool, middlewares ...Middleware) *Wrapper
NewWrapper generates an instance of giants wrapper.
func (*Wrapper) AsyncSubmit ¶
AsyncSubmit sends a task to ant
Click to show internal directories.
Click to hide internal directories.