service

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORSServer added in v0.5.0

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

func (*CORSServer) ServeHTTP added in v0.5.0

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

type Service

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

func NewService

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

func (*Service) GetBlock

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

func (*Service) GetGenesisPeers added in v0.5.0

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

func (*Service) GetGraph added in v0.4.1

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

func (*Service) GetPeers added in v0.4.1

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

func (*Service) GetStats

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

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