Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

    Server is the boxd server instance, which contains all services, including grpc, p2p, database...

    func NewServer

    func NewServer(cfg *config.Config) *Server

      NewServer new a boxd server

      func (*Server) Prepare

      func (server *Server) Prepare()

        Prepare to run the boxd server

        func (*Server) Proc

        func (server *Server) Proc() goprocess.Process

          Proc returns the goprocess to run the server

          func (*Server) Run

          func (server *Server) Run() error

            Run to start node server.

            func (*Server) StartPprof

            func (server *Server) StartPprof(addrs string) error

              StartPprof start pprof service

              func (*Server) Stop

              func (server *Server) Stop()

                Stop the server

                Source Files

                Directories

                Path Synopsis
                Package eventbus provides two message models: pub/sub and send/reply.
                Package eventbus provides two message models: pub/sub and send/reply.