Documentation
¶
Overview ¶
Package api defines public interfaces for the gRPC plugin components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type Interceptor ¶
type Interceptor interface {
UnaryServerInterceptor() grpc.UnaryServerInterceptor
Name() string
}
type Pool ¶
type Pool interface {
// Workers return a 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)
// RemoveWorker removes worker from the pool.
RemoveWorker(ctx context.Context) error
// AddWorker adds worker to the pool.
AddWorker() error
// Reset kill all workers inside the watcher and replaces with new
Reset(ctx context.Context) error
// Destroy the underlying stack (but let them complete the task).
Destroy(ctx context.Context)
// QueueSize shows the number of requests in the queue
QueueSize() uint64
}
type Registry ¶
type Registry interface {
Registry() *protoresolve.Registry
}
Registry is provided by the protoreg plugin. It exposes the parsed protobuf descriptor registry, which the gRPC server uses as the descriptor source for server reflection.
Click to show internal directories.
Click to hide internal directories.