Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(server string) api.GazerSystemClient
Types ¶
type ParserUnit ¶ added in v0.2.0
type ParserWorker ¶ added in v0.2.0
type ParserWorker struct { GazerSystemClient api.GazerSystemClient Tag string Parser func(*api.Raw) error // contains filtered or unexported fields }
func NewParserWorker ¶ added in v0.2.0
func NewParserWorker(gazerSystemClient api.GazerSystemClient, tag string, parser func(*api.Raw) error) *ParserWorker
func (*ParserWorker) Run ¶ added in v0.2.0
func (w *ParserWorker) Run(ctx context.Context)
type SenderUnit ¶ added in v0.2.0
type SenderUnit interface {
Sender(chan<- string)
}
type SenderWorker ¶ added in v0.2.0
type SenderWorker struct { GazerSystemClient api.GazerSystemClient Sender func(chan<- *api.Task) // contains filtered or unexported fields }
func NewSenderWorker ¶ added in v0.2.0
func NewSenderWorker(gazerSystemClient api.GazerSystemClient, sender func(chan<- *api.Task)) *SenderWorker
func (*SenderWorker) Run ¶ added in v0.2.0
func (w *SenderWorker) Run(ctx context.Context)
type Worker ¶ added in v0.2.0
type Worker struct { Worker api.GazerSystemClient SenderWorker *SenderWorker ParserWorker *ParserWorker }
type WorkerGroup ¶ added in v0.2.0
func NewWorkerGroup ¶ added in v0.2.0
func NewWorkerGroup(server string) *WorkerGroup
func (*WorkerGroup) AddByWorkUnit ¶ added in v0.2.0
func (g *WorkerGroup) AddByWorkUnit(w WorkUnit)
func (*WorkerGroup) Run ¶ added in v0.2.0
func (g *WorkerGroup) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.