minos.api_gateway.common.rest.service module¶
- class minos.api_gateway.common.rest.service.RESTService(address, port, endpoints, config, app=<Application 0x7f0e8f0a8070>, **kwds)[source]¶
Bases:
aiomisc.service.aiohttp.AIOHTTPService
Rest Interface
Expose REST Interface handler using aiomisc AIOHTTPService.
- __init__(address, port, endpoints, config, app=<Application 0x7f0e8f0a8070>, **kwds)[source]¶
Initialize self. See help(type(self)) for accurate signature.
- property context: aiomisc.context.Context¶
- Return type
aiomisc.context.Context
- async create_site()¶
- Return type
aiohttp.web_runner.SockSite
- set_loop(loop)¶
- Return type
None
- async start()¶
- Return type
None
- property start_event: asyncio.locks.Event¶
- Return type
asyncio.locks.Event
- async stop(exception=None)¶
- Return type
None