Skip to content

Instantly share code, notes, and snippets.

@davegardnerisme
Created June 24, 2013 12:38
Show Gist options
  • Select an option

  • Save davegardnerisme/5849750 to your computer and use it in GitHub Desktop.

Select an option

Save davegardnerisme/5849750 to your computer and use it in GitHub Desktop.
Test out basic Gossie
package main
import(
"github.com/carloscm/gossie/src/gossie"
)
func main() {
pool, err := gossie.NewConnectionPool([]string{"localhost:19160"}, "test", gossie.PoolOptions{Size: 50, Timeout: 3000})
if err != nil {
panic(err)
}
row := &gossie.Row{
Key: []byte("foo"),
Columns: []*gossie.Column{
&gossie.Column{
Name: []byte("bar"),
Value: []byte("baz"),
},
},
}
err = pool.Writer().Insert("test", row).Run()
if err != nil {
panic(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment