server

command
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package main 是 kite 服务的入口。

启动 gRPC server(对外强类型 RPC)+ grpc-gateway(REST 暴露)双 server, 收到 SIGINT/SIGTERM 时优雅关闭。

核心引擎不接入自动选号池;可通过 KITE_SERVER_ACCOUNTS_FILE 托管显式选择的账号。

配置走环境变量(见 config.Load):默认只监听 127.0.0.1:3722(gRPC)与 127.0.0.1:3721(REST); 对外监听必须配置 KITE_SERVER_AUTH_TOKEN,否则拒绝启动。

设置 KITE_PUBLIC_ADDR 时另开公开只读模式(/player/v1,给网页播放器用,见 docs/player.md); 子命令 `server public-login` 扫码登录服务账号,通过 --account 选择 KITE_PUBLIC_ACCOUNTS 中的账号。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL