Documentation ¶
Overview ¶
Package extworker provides an external worker service and related utilities.
Index ¶
- type Loopback
- func (s *Loopback) EnvironmentConfig(context.Context) string
- func (s *Loopback) StartWorker(ctx context.Context, req *fnpb.StartWorkerRequest) (*fnpb.StartWorkerResponse, error)
- func (s *Loopback) Stop(ctx context.Context) error
- func (s *Loopback) StopWorker(ctx context.Context, req *fnpb.StopWorkerRequest) (*fnpb.StopWorkerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loopback ¶
type Loopback struct {
// contains filtered or unexported fields
}
Loopback implements fnpb.BeamFnExternalWorkerPoolServer
func StartLoopback ¶
StartLoopback initializes a Loopback ExternalWorkerService, at the given port.
func (*Loopback) EnvironmentConfig ¶
EnvironmentConfig returns the environment config for this service instance.
func (*Loopback) StartWorker ¶
func (s *Loopback) StartWorker(ctx context.Context, req *fnpb.StartWorkerRequest) (*fnpb.StartWorkerResponse, error)
StartWorker initializes a new worker harness, implementing BeamFnExternalWorkerPoolServer.StartWorker.
func (*Loopback) Stop ¶
Stop terminates the service and stops all workers.
func (*Loopback) StopWorker ¶
func (s *Loopback) StopWorker(ctx context.Context, req *fnpb.StopWorkerRequest) (*fnpb.StopWorkerResponse, error)
StopWorker terminates a worker harness, implementing BeamFnExternalWorkerPoolServer.StopWorker.
Click to show internal directories.
Click to hide internal directories.