package
0.20.14
Repository: https://github.com/lack-io/vine.git
Documentation: pkg.go.dev

# Functions

NewProxy returns a new proxy which will route using a http client.
NewService returns a new http proxy.
NewSingleHostProxy returns a router which sends requests to a single http backend.
NewSingleHostRouter returns a router which sends requests a single http backend It is used by setting it in a new vine service to act as a proxy for a http backend.
RegisterEndpoint registers a http endpoint against an RPC endpoint RegisterEndpoint("Foo.Bar", "/foo/bar") RegisterEndpoint("Greeter.Hello", "/helloworld") RegisterEndpoint("Greeter.Hello", "http://localhost:8080/").
WithBackend provides an option to set the http backend url.
WithRouter provides an option to set the http router.

# Variables

The default backend.
The default router.

# Structs

Proxy will proxy rpc requests as http POST requests.
Resolver resolves rpc to http.
Router will proxy rpc requests as http POST requests.