add readme, now the driver is ok!
This commit is contained in:
parent
7dd0faf24b
commit
95120c77b1
6 changed files with 145 additions and 29 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue