Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SteamSDK ¶
type SteamSDK struct {
Player *player.PlayerService // 玩家模块 | Player module (SteamID/个人信息/好友等)
Game *game.GameService // 游戏模块 | Game module (已拥有游戏/游戏信息等)
Stats *stats.StatsService // 统计模块 | Stats module (成就/游戏时长等)
Crawler *crawler.CrawlerService // 爬虫模块 | Crawler module (网页爬取/反爬策略)
Server *server.ServerService // 服务器模块 | Server module (集成官方指定A2S库)
}
SteamSDK 全局 Steam SDK 入口结构体 聚合所有核心业务模块, 提供统一的 SDK 调用入口, 支持链式配置扩展 SteamSDK is the global entry structure of Steam SDK Aggregates all core business modules, provides a unified SDK call entry, supports chain configuration extension SteamSDK 全局 Steam SDK 入口
func NewSteamSDK ¶
func NewSteamSDK(cfg *config.SteamConfig) (*SteamSDK, error)
NewSteamSDK 创建全局 Steam SDK 实例 初始化内部 Client 并完成所有业务模块的实例化,支持配置校验和错误兜底 参数:
- cfg: 全局配置(支持链式配置自定义代理、限流、超时等) | Global config (supports chain config for proxy/rate limit/timeout)
返回值:
- *SteamSDK: SDK 实例 | SDK instance
- error: 初始化失败错误 | Initialization error
Directories
¶
| Path | Synopsis |
|---|---|
|
Package server 提供 Steam 服务器(A2S 协议)相关查询服务 包含单个/批量服务器基础信息、玩家信息、规则信息的查询能力, 支持限流、重试、超时控制,保证线程安全, 底层基于 go-a2s 库实现 Package server provides query services related to Steam servers (A2S protocol) It includes the ability to query single/batch server basic info, player info, rule info, supports rate limiting, retry, timeout control, ensures thread safety, and is implemented based on the go-a2s library at the bottom
|
Package server 提供 Steam 服务器(A2S 协议)相关查询服务 包含单个/批量服务器基础信息、玩家信息、规则信息的查询能力, 支持限流、重试、超时控制,保证线程安全, 底层基于 go-a2s 库实现 Package server provides query services related to Steam servers (A2S protocol) It includes the ability to query single/batch server basic info, player info, rule info, supports rate limiting, retry, timeout control, ensures thread safety, and is implemented based on the go-a2s library at the bottom |
Click to show internal directories.
Click to hide internal directories.