Skip to content

rayleyva/GoFluidDB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoFluidDB

GoFluidDB is an light wrapper for the FluidDB API in Go.

(Based on the Go Lang docs + library source and go-twitter)

Installation

Make files coming soon. For now include in your project directory and import "./fluiddb"

Quick Start

  • Create a url to run the request against.

url := "/users/username"

  • Create a client by passing in username and password string (empty strings for unauthenticated calls)/

myclient := fluiddb.NewClient("test","test")

  • Call the desired HTTP method. Returns http.Response and os.Error

r, err := myclient.Get(url)

or

r, err := myclient.Post(url, data)

Matching client methods for the request methods supported by FluidDB (GET, POST, PUT, DELETE & HEAD) are included.

Also included is a UrlEncode method which converts a string map "map[string]string" into a query string in the format "?param1=value1&param2=value2..."

Documentation

doc/ - godoc generated files, coming soon

About

A lightweight wrapper around the FluidDB API for clients written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published