elasticstream/worker.go

24 lines
328 B
Go

package elasticstream
import (
// "github.com/elastic/go-elasticsearch/v8"
)
type Worker struct {
client *Client
index string // name of the indexes worker pulls data from
}
func NewWorker(client *Client, index string) {
w := &Worker{
client: client,
index: index,
}
go w.start()
}
func (w *Worker) start() {
}