Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.01 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.01 KB

Build Status Codecov GoDoc

Kivik Proxy

This package provides a CouchDB proxy accessible as a Go http.Handler.

Example

package main

import (
    "log"
    "net/http"

    "github.com/go-kivik/proxy"
)

func main() {
    p, err := proxy.New("http:https://localhost:5984")
    if err != nil {
        log.Fatal(err)
    }
    s := &http.Server{
        Handler: p,
    }
    log.Fatal(s.ListenAndServe(":8080")) // localhost:5984 now proxied to localhost:8080
}

What license is Kivik released under?

This software is released under the terms of the Apache 2.0 license. See LICENCE.md, or read the full license.