Documentation
¶
Index ¶
- Constants
- type Config
- type Configurer
- type Plugin
- func (p *Plugin) Close(uuid string) error
- func (p *Plugin) Exec(pld *payload.Payload) (*payload.Payload, error)
- func (p *Plugin) Init(log *zap.Logger, cfg Configurer, server Server) error
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() interface{}
- func (p *Plugin) Reset() error
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() 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 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) (*payload.Payload, 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.