Exemplo n.º 1
0
/**
 * TestToString
 */
func TestToString() {
	Couch = couch.New(nil, false)
	Client = couch.NewClient(Couch)
	Client.DoRequest("HEAD /", nil, "", nil)
	util.Dumpf("Request\n>>\n%s", Client.GetRequest().ToString())
	util.Dumpf("Response\n>>\n%s", Client.GetResponse().ToString())
}
Exemplo n.º 2
0
func init() {
	Couch = couch.New(nil, DEBUG)
	Client = couch.NewClient(Couch)
	Database = couch.NewDatabase(Client, DBNAME)
	Document = couch.NewDocument(Database, "_id", DOCID)
}
Exemplo n.º 3
0
func init() {
	Couch = couch.New(nil, DEBUG)
	Client = couch.NewClient(Couch)
}
Exemplo n.º 4
0
func init() {
	Couch = couch.New(nil, DEBUG)
	Client = couch.NewClient(Couch)
	Database = couch.NewDatabase(Client, DBNAME)
}
Exemplo n.º 5
0
func init() {
	Couch = couch.New(nil, DEBUG)
	Client = couch.NewClient(Couch)
	Server = couch.NewServer(Client)
}