stretchr / sdk-go

Go SDK for Stretchr platform
7 stars 1 forks source link

Rewrite stretchr-go following new design patterns #3

Closed matryer closed 11 years ago

matryer commented 11 years ago

E.g.

session := stretchr.SessionForCompany("mycomp").WithProject("test").WithKeys(PUB,PRIV)

// get and instantly return 'people'
r := session.Get("people")
if r.Success {
  // do something with r.Data
}

// use async version
session.Get("people", func(r *stretchr.Response){
  if r.Success {
    // do something with r.Data
  }
})