Documentation
¶
Index ¶
- Constants
- type Config
- type Configurer
- type Logger
- type Plugin
- func (p *Plugin) AddWorker() error
- func (p *Plugin) Close(uuid string) error
- func (p *Plugin) Exec(epld *payload.Payload) (*payload.Payload, error)
- func (p *Plugin) Init(log Logger, cfg Configurer, server Server) error
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() any
- func (p *Plugin) RemoveWorker(ctx context.Context) error
- func (p *Plugin) Reset() error
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop(context.Context) error
- func (p *Plugin) Workers() []*process.State
- type Pool
- type Server
- type Srv
Constants ¶
View Source
const (
RrMode string = "RR_MODE"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Servers map[string]*Srv `mapstructure:"servers"`
ReadBufferSize int `mapstructure:"read_buf_size"`
Pool *pool.Config `mapstructure:"pool"`
}
func (*Config) InitDefault ¶
type Configurer ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) RemoveWorker ¶ added in v4.3.1
type Pool ¶
type Pool interface {
// Workers returns worker list associated with the pool.
Workers() (workers []*worker.Process)
// RemoveWorker removes worker from the pool.
RemoveWorker(ctx context.Context) error
// AddWorker adds worker to the pool.
AddWorker() error
// 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)
}
Click to show internal directories.
Click to hide internal directories.