algod

package
v0.0.0-...-76c1feb Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	RootPath string
	Genesis  bookkeeping.Genesis
	// contains filtered or unexported fields
}

Server represents an instance of the REST API HTTP server

func (*Server) Initialize

func (s *Server) Initialize(cfg config.Local, phonebookAddresses []string, genesisText string) error

Initialize creates a Node instance with applicable network services

func (*Server) Start

func (s *Server) Start()

Start starts a Node instance and its network services

func (*Server) Stop

func (s *Server) Stop()

Stop initiates a graceful shutdown of the node by shutting down the network server.

Directories

Path Synopsis
api
server
Package server Algod REST API.
Package server Algod REST API.
server/lib
Code generated by bundle_swagger_json.sh, along with swagger.json.
Code generated by bundle_swagger_json.sh, along with swagger.json.
server/v1/handlers
Package handlers handles and helps specify the algod/api Currently, server implementation annotations serve as the API ground truth.
Package handlers handles and helps specify the algod/api Currently, server implementation annotations serve as the API ground truth.
server/v2/generated
Package generated provides primitives to interact the openapi HTTP API.
Package generated provides primitives to interact the openapi HTTP API.
server/v2/generated/private
Package private provides primitives to interact the openapi HTTP API.
Package private provides primitives to interact the openapi HTTP API.
spec/common
Package common defines models exposed by algod rest api
Package common defines models exposed by algod rest api
spec/v1
Package v1 defines models exposed by algod rest api
Package v1 defines models exposed by algod rest api

Jump to

Keyboard shortcuts

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