add readme, now the driver is ok!

This commit is contained in:
alexisvisco 2019-03-25 20:34:14 +01:00
parent 7dd0faf24b
commit 95120c77b1
6 changed files with 145 additions and 29 deletions

View file

@ -28,7 +28,23 @@ const (
)
type IngesterChannel struct {
*Connection
*Driver
}
func NewIngester(host string, port int, password string) (Ingestable, error) {
driver := &Driver{
Host: host,
Port: port,
Password: password,
Channel: Ingest,
}
err := driver.connect()
if err != nil {
return nil, err
}
return IngesterChannel{
Driver: driver,
}, nil
}
func (i IngesterChannel) Push(collection, bucket, object, text string) (err error) {