service

package
v0.0.0-...-50e3d47 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORSServer

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

CORSServer ...

func (*CORSServer) ServeHTTP

func (s *CORSServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)

ServeHTTP ...

type Service

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

Service ...

func NewService

func NewService(bindAddress string, n *node.Node, logger *logrus.Logger) *Service

NewService ...

func (*Service) GetBlock

func (s *Service) GetBlock(w http.ResponseWriter, r *http.Request)

GetBlock ...

func (*Service) GetGenesisPeers

func (s *Service) GetGenesisPeers(w http.ResponseWriter, r *http.Request)

GetGenesisPeers ...

func (*Service) GetGraph

func (s *Service) GetGraph(w http.ResponseWriter, r *http.Request)

GetGraph ...

func (*Service) GetPeers

func (s *Service) GetPeers(w http.ResponseWriter, r *http.Request)

GetPeers ...

func (*Service) GetStats

func (s *Service) GetStats(w http.ResponseWriter, r *http.Request)

GetStats ...

func (*Service) Serve

func (s *Service) Serve()

Serve defines endpoints and starts ListenAndServe

Jump to

Keyboard shortcuts

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