server

command
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 11 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 时优雅关闭。

地基阶段:engine + session 池用 noop/cache 初始化(不接 Redis), 真实 Redis 接入在后续。

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

Jump to

Keyboard shortcuts

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