Documentation
¶
Index ¶
- func GethFactory(name string, binary string) (engines.Engine, error)
- func NewGethEngine(name string, binary string) (engines.Engine, error)
- type GethEngine
- func (e *GethEngine) ChainID() ids.ID
- func (e *GethEngine) Health(ctx context.Context) (*engines.HealthStatus, error)
- func (e *GethEngine) IsRunning() bool
- func (e *GethEngine) Metrics() map[string]interface{}
- func (e *GethEngine) Name() string
- func (e *GethEngine) NetworkID() uint32
- func (e *GethEngine) P2PEndpoint() string
- func (e *GethEngine) ParentChain() *engines.ChainInfo
- func (e *GethEngine) RPCEndpoint() string
- func (e *GethEngine) Restart(ctx context.Context) error
- func (e *GethEngine) Start(ctx context.Context, config *engines.NodeConfig) error
- func (e *GethEngine) Stop(ctx context.Context) error
- func (e *GethEngine) Type() engines.EngineType
- func (e *GethEngine) Uptime() time.Duration
- func (e *GethEngine) WSEndpoint() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GethFactory ¶
GethFactory creates Geth engines
Types ¶
type GethEngine ¶
type GethEngine struct {
// contains filtered or unexported fields
}
GethEngine wraps standalone Geth node management
func (*GethEngine) ChainID ¶
func (e *GethEngine) ChainID() ids.ID
func (*GethEngine) Health ¶
func (e *GethEngine) Health(ctx context.Context) (*engines.HealthStatus, error)
func (*GethEngine) IsRunning ¶
func (e *GethEngine) IsRunning() bool
func (*GethEngine) Metrics ¶
func (e *GethEngine) Metrics() map[string]interface{}
func (*GethEngine) Name ¶
func (e *GethEngine) Name() string
func (*GethEngine) NetworkID ¶
func (e *GethEngine) NetworkID() uint32
func (*GethEngine) P2PEndpoint ¶
func (e *GethEngine) P2PEndpoint() string
func (*GethEngine) ParentChain ¶
func (e *GethEngine) ParentChain() *engines.ChainInfo
func (*GethEngine) RPCEndpoint ¶
func (e *GethEngine) RPCEndpoint() string
func (*GethEngine) Start ¶
func (e *GethEngine) Start(ctx context.Context, config *engines.NodeConfig) error
func (*GethEngine) Type ¶
func (e *GethEngine) Type() engines.EngineType
func (*GethEngine) Uptime ¶
func (e *GethEngine) Uptime() time.Duration
func (*GethEngine) WSEndpoint ¶
func (e *GethEngine) WSEndpoint() string
Click to show internal directories.
Click to hide internal directories.