rest

package
v0.0.0-...-10b4495 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

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

HttpServer handles the REST API requests in each node and redirects it to the local Node, where is the logic's core.

func NewServer

func NewServer(port int) *HttpServer

NewServer creates a new API HttpServer that receives the requests for the local node.

func (*HttpServer) Start

func (server *HttpServer) Start(node api.LocalNode) error

Start initializes the endpoints and starts the http web server.

func (*HttpServer) Stop

func (server *HttpServer) Stop()

Stop the http web server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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