rpc

package
v0.0.0-...-6d87009 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(store *store.BadgerStore, conf *config.Configuration, port int) *http.Server

Types

type Call

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

type RPC

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

func (*RPC) ServeHTTP

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

type Render

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

func (*Render) RenderData

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

func (*Render) RenderError

func (r *Render) RenderError(err error)

Jump to

Keyboard shortcuts

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