elasticstream/worker.go

24 lines
328 B
Go
Raw Normal View History

2024-10-03 12:40:46 +05:30
package elasticstream
import (
2024-10-03 14:04:17 +05:30
// "github.com/elastic/go-elasticsearch/v8"
2024-10-03 12:40:46 +05:30
)
type Worker struct {
2024-10-03 14:04:17 +05:30
client *Client
2024-10-03 12:40:46 +05:30
index string // name of the indexes worker pulls data from
}
2024-10-03 14:04:17 +05:30
func NewWorker(client *Client, index string) {
2024-10-03 12:40:46 +05:30
w := &Worker{
client: client,
index: index,
}
go w.start()
}
func (w *Worker) start() {
}