Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigSection = "server"
View Source
const Response = "test"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type Pool ¶
type Pool interface { // Workers returns worker list associated with the pool. Workers() (workers []*worker.Process) // Exec payload Exec(ctx context.Context, p *payload.Payload, stopCh chan struct{}) (chan *staticPool.PExec, error) // Reset kill all workers inside the watcher and replaces with new Reset(ctx context.Context) error // Destroy all underlying stack (but let them complete the task). Destroy(ctx context.Context) }
type Server ¶
type Server interface { CmdFactory(env map[string]string) func() *exec.Cmd NewPool(ctx context.Context, cfg *pool.Config, env map[string]string, _ *zap.Logger) (*staticPool.Pool, error) NewWorker(ctx context.Context, env map[string]string) (*worker.Process, error) }
Server creates workers for the application.
Click to show internal directories.
Click to hide internal directories.