Documentation ¶
Index ¶
- type Collector
- type Collectors
- type ConsoleMessage
- type Progress
- type ServiceProvider
- type Stage
- func (s *Stage) Error(message string)
- func (s *Stage) Errorf(format string, a ...interface{}) error
- func (s *Stage) Finish()
- func (s *Stage) GetProgress() *Progress
- func (s *Stage) Info(message string)
- func (s *Stage) Infof(format string, a ...interface{}) string
- func (s *Stage) Progress(max int) *Progress
- type StageMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { Stages []*Stage `json:"stages"` // contains filtered or unexported fields }
Collector 数据采集器,用于采集 Job 的输出
func NewCollector ¶
func NewCollector(collectors *Collectors, jobID string) *Collector
NewCollector 创建一个新的数据采集器
type Collectors ¶
type Collectors struct {
// contains filtered or unexported fields
}
Collectors 用于存储当前活跃的所有collector
func NewCollectors ¶
func NewCollectors() *Collectors
func (*Collectors) Add ¶
func (cols *Collectors) Add(col *Collector)
func (*Collectors) Get ¶
func (cols *Collectors) Get(id string) *Collector
func (*Collectors) Names ¶
func (cols *Collectors) Names() []string
func (*Collectors) Remove ¶
func (cols *Collectors) Remove(name string)
type ConsoleMessage ¶
type ConsoleMessage struct { Stage *Stage StageMessage StageMessage }
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func NewProgress ¶
func (*Progress) Percentage ¶
type ServiceProvider ¶
type ServiceProvider struct{}
func (ServiceProvider) Boot ¶
func (s ServiceProvider) Boot(app *glacier.Glacier)
func (ServiceProvider) Register ¶
func (s ServiceProvider) Register(app *container.Container)
type Stage ¶
type Stage struct { Name string `json:"name"` Messages []StageMessage `json:"messages"` Percentage float32 `json:"percentage"` Max int `json:"max"` Total int `json:"total"` // contains filtered or unexported fields }
Stage 采集阶段
func (*Stage) GetProgress ¶
Click to show internal directories.
Click to hide internal directories.