Skip to content

danielwoodsdeveloper/dodo-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dodo Util

A tiny library for interfacing with a Dodo document store in Go!

Dodo document store is available here

Using Dodo Util

This can be installed just as any other Go dependency: go get github.com/danielwoodsdeveloper/dodo-util. Import it to your app: import ("danielwoodsdeveloper/dodo-util").

This gives you access to a number of easy-to-use functions:

  • Store(doc map[string]interface{})
  • Get(id string)
  • Modify(id string, doc map[string]interface{})
  • GetAll()
  • Delete(id string)
  • DeleteAll()

To set up the Dodo connection in the first place:

st := dodo.Settings{"http://localhost:6060", "", "", "", ""}
d, err := dodo.NewDodoConnection(st)
if err != nil {
    panic(err)
}

To Do

At the moment, Dodo document store supports authentication, but currently, Dodo Util does not.

About

A tiny library for interfacing with a Dodo document store in Go!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages