MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / get_keepalive_url

Function get_keepalive_url

config.py:465–476  ·  view source on GitHub ↗

Get keep-alive URL setting. 配置后保活服务会定期向该URL发送GET请求。 留空表示禁用保活服务。 Environment variable: KEEPALIVE_URL Database config key: keepalive_url Default: "" (disabled)

()

Source from the content-addressed store, hash-verified

463
464
465async def get_keepalive_url() -> str:
466 """
467 Get keep-alive URL setting.
468
469 配置后保活服务会定期向该URL发送GET请求。
470 留空表示禁用保活服务。
471
472 Environment variable: KEEPALIVE_URL
473 Database config key: keepalive_url
474 Default: "" (disabled)
475 """
476 return str(await get_config_value("keepalive_url", "", "KEEPALIVE_URL"))
477
478
479async def get_keepalive_interval() -> int:

Callers 1

startMethod · 0.90

Calls 1

get_config_valueFunction · 0.85

Tested by

no test coverage detected