Skip to content

go-kivik/proxy

Repository files navigation

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.