server

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

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 []any  `json:"params"`
}

type RPC

type RPC struct {
	Store storage.Store
	Node  *kernel.Node
	// 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 any)

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