iotex-core: github.com/iotexproject/iotex-core/server/itx Index | Files

package itx

import "github.com/iotexproject/iotex-core/server/itx"

Index

Package Files

heartbeat.go server.go

func StartServer Uses

func StartServer(ctx context.Context, svr *Server, probeSvr *probe.Server, cfg config.Config)

StartServer starts a node server

type HeartbeatHandler Uses

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

HeartbeatHandler is the handler to periodically log the system key metrics

func NewHeartbeatHandler Uses

func NewHeartbeatHandler(s *Server) *HeartbeatHandler

NewHeartbeatHandler instantiates a HeartbeatHandler instance

func (*HeartbeatHandler) Log Uses

func (h *HeartbeatHandler) Log()

Log executes the logging logic

type Server Uses

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

Server is the iotex server instance containing all components.

func NewInMemTestServer Uses

func NewInMemTestServer(cfg config.Config) (*Server, error)

NewInMemTestServer creates a test server in memory

func NewServer Uses

func NewServer(cfg config.Config) (*Server, error)

NewServer creates a new server TODO clean up config, make root config contains network, dispatch and chainservice

func (*Server) ChainService Uses

func (s *Server) ChainService(id uint32) *chainservice.ChainService

ChainService returns the chainservice hold in Server with given id.

func (*Server) Dispatcher Uses

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

Dispatcher returns the Dispatcher

func (*Server) NewSubChainService Uses

func (s *Server) NewSubChainService(cfg config.Config, opts ...chainservice.Option) error

NewSubChainService creates a new chain service in this server.

func (*Server) P2PAgent Uses

func (s *Server) P2PAgent() *p2p.Agent

P2PAgent returns the P2P agent

func (*Server) Start Uses

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

Start starts the server

func (*Server) Stop Uses

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

Stop stops the server

func (*Server) StopChainService Uses

func (s *Server) StopChainService(ctx context.Context, id uint32) error

StopChainService stops the chain service run in the server.

Package itx imports 26 packages (graph) and is imported by 1 packages. Updated 2019-12-06. Refresh now. Tools for package owners.