Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServers ¶ added in v0.5.0
func RegisterServers(servers []string)
Types ¶
type BothWorker ¶ added in v0.3.0
type BothWorker struct { Client *Client SenderWorker *SenderWorker ParserWorker *ParserWorker // contains filtered or unexported fields }
func NewBothWorker ¶ added in v0.3.0
func (*BothWorker) GetName ¶ added in v0.4.0
func (w *BothWorker) GetName() string
func (*BothWorker) Run ¶ added in v0.3.0
func (w *BothWorker) Run(ctx context.Context)
type Client ¶ added in v0.3.1
type Client struct {
api.GazerSystemClient
}
func NewClientWithLB ¶ added in v0.5.0
type GazerSystemResolver ¶ added in v0.5.0
type GazerSystemResolver struct {
// contains filtered or unexported fields
}
GazerSystemResolver Resolver(https://godoc.org/google.golang.org/grpc/resolver#Resolver).
func (*GazerSystemResolver) Close ¶ added in v0.5.0
func (*GazerSystemResolver) Close()
func (*GazerSystemResolver) ResolveNow ¶ added in v0.5.0
func (r *GazerSystemResolver) ResolveNow(_ resolver.ResolveNowOptions)
type GazerSystemResolverBuilder ¶ added in v0.5.0
type GazerSystemResolverBuilder struct {
// contains filtered or unexported fields
}
GazerSystemResolverBuilder ResolverBuilder(https://godoc.org/google.golang.org/grpc/resolver#Builder).
func (*GazerSystemResolverBuilder) Build ¶ added in v0.5.0
func (b *GazerSystemResolverBuilder) Build(target resolver.Target, cc resolver.ClientConn, _ resolver.BuildOptions) (resolver.Resolver, error)
func (*GazerSystemResolverBuilder) Scheme ¶ added in v0.5.0
func (*GazerSystemResolverBuilder) Scheme() string
type ParserUnit ¶ added in v0.2.0
type ParserWorker ¶ added in v0.2.0
type ParserWorker struct { Client *Client Tag string Parser func(*api.Raw, *Client) error // contains filtered or unexported fields }
func NewParserWorker ¶ added in v0.2.0
func (*ParserWorker) GetName ¶ added in v0.4.0
func (p *ParserWorker) GetName() string
func (*ParserWorker) Run ¶ added in v0.2.0
func (p *ParserWorker) Run(ctx context.Context)
type SenderUnit ¶ added in v0.2.0
type SenderWorker ¶ added in v0.2.0
type SenderWorker struct { Client *Client TaskChannel chan *api.Task Sender func(chan<- *api.Task) // contains filtered or unexported fields }
func NewSenderWorker ¶ added in v0.2.0
func NewSenderWorker(client *Client, name string, sender func(chan<- *api.Task)) *SenderWorker
func (*SenderWorker) GetName ¶ added in v0.4.0
func (s *SenderWorker) GetName() string
func (*SenderWorker) Run ¶ added in v0.2.0
func (s *SenderWorker) Run(ctx context.Context)
type WorkerGroup ¶ added in v0.2.0
func NewWorkerGroup ¶ added in v0.2.0
func NewWorkerGroup(servers ...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.