api

package
v0.0.0-...-5d652c1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	Blockchain *blockchain.Blockchain
}

APIServer represents the REST API server

func NewAPIServer

func NewAPIServer(bc *blockchain.Blockchain) *APIServer

NewAPIServer creates a new API server

func (*APIServer) Start

func (api *APIServer) Start(port string)

Start starts the API server

Jump to

Keyboard shortcuts

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