Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
Master 分布式压测调度端
func (*Master) ExportReportData ¶
func (m *Master) ExportReportData(reportID string) (*report.ReportData, error)
ExportReportData 返回聚合后的数据(供 CLI 使用)
func (*Master) RegisterAgentFromRedis ¶
func (m *Master) RegisterAgentFromRedis()
RegisterAgentFromRedis 从 Redis 恢复已注册的 Agent
type MasterConfig ¶
type MasterConfig struct {
RedisConfig redis_interface.Config
ListenAddr string // HTTP 监听地址,如 ":8080"
ReportDir string // HTML 报告输出目录
ReportExpiry time.Duration // 报告自动过期时长;0 表示永不过期(如 7*24*time.Hour = 7 天)
}
MasterConfig Master 启动配置
Click to show internal directories.
Click to hide internal directories.