itx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatHandler

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

HeartbeatHandler is the handler to periodically log the system key metrics

func NewHeartbeatHandler

func NewHeartbeatHandler(s *Server) *HeartbeatHandler

NewHeartbeatHandler instantiates a HeartbeatHandler instance

func (*HeartbeatHandler) Do

func (h *HeartbeatHandler) Do()

Do executes the logging logic

type Server

type Server struct {
	service.Service
	// contains filtered or unexported fields
}

Server is the iotex server instance containing all components.

func NewServer

func NewServer(cfg config.Config) *Server

NewServer creates a new server

func (*Server) Ap

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

Ap returns the Action pool

func (*Server) Bc

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

Bc returns the Blockchain

func (*Server) Dp

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

Dp returns the Dispatcher

func (*Server) Init

func (s *Server) Init() error

Init initialize the server

func (*Server) P2p

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

P2p returns the P2P network

func (*Server) Sf

func (s *Server) Sf() state.Factory

Sf returns the StateFactory

func (*Server) Start

func (s *Server) Start() error

Start starts the server

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

Jump to

Keyboard shortcuts

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