Documentation ¶
Index ¶
- func NewP2PClient4EOS(name string, chainID string, startBlock uint32, peers []string, ...) *p2pEOSClient
- func NewP2PClient4EOSForce(name string, chainID string, startBlock uint32, peers []string, ...) *p2pEOSForceClient
- func NewP2PClient4Forceio(name string, chainID string, startBlock uint32, peers []string, ...) *p2pForceioClient
- type ClientInterface
- type P2PInitParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewP2PClient4EOS ¶
func NewP2PClient4EOS(name string, chainID string, startBlock uint32, peers []string, logger *zap.Logger) *p2pEOSClient
NewP2PClient4EOS new p2p peers from cfg
Types ¶
type ClientInterface ¶
type ClientInterface interface { Type() types.ClientType Start() error CloseConnection() error IsClosed() bool SetReadTimeout(readTimeout time.Duration) RegHandler(handler types.P2PHandler) }
ClientInterface interface for common p2p client
func NewP2PClient ¶
func NewP2PClient(typ types.ClientType, params P2PInitParams) ClientInterface
Click to show internal directories.
Click to hide internal directories.