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