rpc

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v0.8.3

func NewServer(custom *config.Custom, store storage.Store, node *kernel.Node, port int) *http.Server

Types

type Call

type Call struct {
	Id     string        `json:"id"`
	Method string        `json:"method"`
	Params []interface{} `json:"params"`
}

type RPC added in v0.13.5

type RPC struct {
	Store storage.Store
	Node  *kernel.Node
	// contains filtered or unexported fields
}

func (*RPC) ServeHTTP added in v0.13.5

func (impl *RPC) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Render added in v0.7.13

type Render struct {
	// contains filtered or unexported fields
}

func (*Render) RenderData added in v0.7.13

func (r *Render) RenderData(data interface{})

func (*Render) RenderError added in v0.7.27

func (r *Render) RenderError(err error)

Jump to

Keyboard shortcuts

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