teos.internal_api¶
-
class
InternalAPI
(watcher, internal_api_endpoint, stop_command_event)[source]¶ Bases:
object
The
InternalAPI
is the interface to interact with the tower backend. It offers methods than can be accessed by the CLI or the client via theAPI
(HTTP proxy) or theRPC
(gRPC proxy).- Parameters
watcher (
Watcher
) – aWatcher
instance to pass the requests to. The Watcher is the main backend class of the tower and can interact with the rest.internal_api_endpoint (
str
) – the endpoint where the internal api will be served (gRPC server).stop_command_event (
multiprocessing.Event
) – an event to be set when astop
command is issued.
-
logger
¶ The logger for this component.
- Type
Logger
-
endpoint
¶ The endpoint where the internal api will be served (gRPC server).
- Type
str
-
rpc_server
¶ The non-started gRPC server instance.
- Type
grpc.Server