Services
kyotsu.config.services
¶
This module contains base models for defining application settings involving HTTP and gRPC services.
These models should be used in a nested manner with BaseSettings class.
Example
In the above example, EXTERNAL_HTTP_SERVICE_NAME, EXTERNAL_GRPC_SERVICE_NAME, and EXTERNAL_HTTP_GRPC_SERVICE_NAME
will contain the configuration for each respective service type.
| CLASS | DESCRIPTION |
|---|---|
HttpService |
Defines and validates the HTTP_URL attribute representing the URL for HTTP communication with a service. |
GrpcService |
Defines and validates the GRPC_HOST and GRPC_PORT attributes required for GRPC communication with a service. |
HttpGrpcService |
A combination of HttpService and GrpcService, for services that offer both HTTP and GRPC interfaces. |
HttpService
¶
GrpcService
¶
HttpGrpcService
¶
Bases: HttpService, GrpcService
A combined service class that possesses both HTTP and gRPC attributes.
| ATTRIBUTE | DESCRIPTION |
|---|---|
HTTP_URL |
The URL for the HTTP service.
|
GRPC_HOST |
The host for the gRPC service.
|
GRPC_PORT |
The port for the gRPC service.
|