Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardCall ¶
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)
func InitResponseCache ¶ added in v0.5.0
func InitResponseCache(c ResponseCache)
InitResponseCache initializes module-level responseCache variable
Types ¶
type ResponseCache ¶ added in v0.5.0
type ResponseCache interface { Save(method string, params interface{}, r interface{}) Retrieve(method string, params interface{}) interface{} Count() int // contains filtered or unexported methods }
ResponseCache interface describes methods for SDK response cache saving and retrieval
Click to show internal directories.
Click to hide internal directories.