proxy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DaemonURL = "http://localhost:5479"

DaemonURL is the URL of lbrynet json-rpc endpoint

Functions

func ForwardCall

func ForwardCall(clientQuery []byte) ([]byte, error)

ForwardCall takes a raw client request, passes it over to the daemon and returns daemon response.

Example:

body, err := ioutil.ReadAll(req.Body)
if err != nil {
	log.Panicf("error: ", err.Error())
}
lbrynetResponse, err := proxy.ForwardCall(body)

Types

This section is empty.

Jump to

Keyboard shortcuts

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