couchdb_client

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CouchDBUp

func CouchDBUp(CouchdbURL string, client *CouchDBHttpClient) bool

Types

type CouchDBHttpClient

type CouchDBHttpClient struct {
	// contains filtered or unexported fields
}

func New

func New(timeout time.Duration, transport *http.Transport) CouchDBHttpClient

func (CouchDBHttpClient) CouchDBClient

func (cdb CouchDBHttpClient) CouchDBClient(action string, url string, user string, pswd string, headers map[string]string, data []byte) ([]byte, error)

CouchDBClient will only handle the byte level for the input and output data. Marshalling will be left to the higher level callers.

func (CouchDBHttpClient) CouchDBClientValid

func (cdb CouchDBHttpClient) CouchDBClientValid() bool

type CouchDBResponse

type CouchDBResponse struct {
	Id  string
	Ok  bool
	Rev string
}

func UnmarshallCouchDbResponse

func UnmarshallCouchDbResponse(body []byte) (*CouchDBResponse, error)

type CouchDBSeeds

type CouchDBSeeds struct {
	Seed []string
}

type CouchDBStatus

type CouchDBStatus struct {
	Status string
	Seeds  CouchDBSeeds
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL