Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { // Encode encodes messages and context to the payload for the worker Encode(ctx *internal.Context, p *payload.Payload, msg ...*internal.Message) error // Decode decodes payload from the worker to the proto-message Decode(pld *payload.Payload, msg *[]*internal.Message) error // DecodeWorkerInfo decode a call to get a worker info ID=0 (initial) DecodeWorkerInfo(p *payload.Payload, wi *[]*internal.WorkerInfo) error }
type Configurer ¶
type Configurer interface { // UnmarshalKey takes a single key and unmarshal it into a Struct. UnmarshalKey(name string, out any) error // Has checks if config section exists. Has(name string) bool // GracefulTimeout represents timeout for all servers registered in the endure GracefulTimeout() time.Duration // RRVersion returns running RR version RRVersion() string }
type Pool ¶
type Pool interface { // Workers returns worker list associated with the pool. Workers() (workers []*worker.Process) // QueueSize can be implemented on the pool to provide the requests queue information QueueSize() uint64 // Reset kill all workers inside the watcher and replaces with new Reset(ctx context.Context) error // Exec payload Exec(ctx context.Context, p *payload.Payload) (*payload.Payload, error) }
Click to show internal directories.
Click to hide internal directories.