itx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 16 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatHandler added in v0.2.0

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

HeartbeatHandler is the handler to periodically log the system key metrics

func NewHeartbeatHandler added in v0.2.0

func NewHeartbeatHandler(s *Server) *HeartbeatHandler

NewHeartbeatHandler instantiates a HeartbeatHandler instance

func (*HeartbeatHandler) Log added in v0.3.0

func (h *HeartbeatHandler) Log()

Log executes the logging logic

type Server

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

Server is the iotex server instance containing all components.

func NewInMemTestServer added in v0.3.0

func NewInMemTestServer(cfg *config.Config) *Server

NewInMemTestServer creates a test server in memory

func NewServer

func NewServer(cfg *config.Config) *Server

NewServer creates a new server

func (*Server) ActionPool added in v0.3.0

func (s *Server) ActionPool() actpool.ActPool

ActionPool returns the Action pool

func (*Server) Blockchain added in v0.3.0

func (s *Server) Blockchain() blockchain.Blockchain

Blockchain returns the Blockchain

func (*Server) Consensus added in v0.3.0

func (s *Server) Consensus() consensus.Consensus

Consensus returns the consensus instance

func (*Server) Dispatcher added in v0.3.0

func (s *Server) Dispatcher() dispatcher.Dispatcher

Dispatcher returns the Dispatcher

func (*Server) Explorer added in v0.3.0

func (s *Server) Explorer() *explorer.Server

Explorer returns the explorer instance

func (*Server) P2P added in v0.3.0

func (s *Server) P2P() network.Overlay

P2P returns the P2P network

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the server

Jump to

Keyboard shortcuts

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