Documentation
¶
Index ¶
- type Client
- type NodeUtils
- type Option
- func CreateFifo(create bool) Option
- func WithBlockThreshold(n time.Duration) Option
- func WithDataPath(path string) Option
- func WithHaltHeight(height int64) Option
- func WithHost(s string) Option
- func WithPort(v int) Option
- func WithTmkmsProxy(enable bool) Option
- func WithTraceStore(path string) Option
- func WithUpgradesConfig(path string) Option
- type Options
- type Upgrade
- type UpgradeChecker
- type UpgradeSource
- type UpgradesConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDataSize ¶
func (*Client) GetLatestHeight ¶
func (*Client) ListSnapshots ¶
func (*Client) RequiresUpgrade ¶
func (*Client) ShutdownNodeUtilsServer ¶
type Option ¶
type Option func(*Options)
func CreateFifo ¶
func WithBlockThreshold ¶
func WithDataPath ¶
func WithHaltHeight ¶ added in v1.40.0
func WithTmkmsProxy ¶
func WithTraceStore ¶
func WithUpgradesConfig ¶
type Upgrade ¶
type Upgrade struct {
Height int64 `json:"height"`
Status string `json:"status"`
Image string `json:"image"`
Source UpgradeSource `json:"source"`
}
type UpgradeChecker ¶
type UpgradeChecker struct {
// contains filtered or unexported fields
}
func NewUpgradeChecker ¶
func NewUpgradeChecker(configFile string) (*UpgradeChecker, error)
func (*UpgradeChecker) GetUpgrade ¶
func (u *UpgradeChecker) GetUpgrade(height int64) (*Upgrade, error)
func (*UpgradeChecker) ShouldUpgrade ¶
func (u *UpgradeChecker) ShouldUpgrade(height int64) bool
func (*UpgradeChecker) WatchConfigFile ¶
func (u *UpgradeChecker) WatchConfigFile() error
type UpgradeSource ¶
type UpgradeSource string
const ( UpgradeScheduled = "scheduled" ManualUpgrade UpgradeSource = "manual" OnChainUpgrade UpgradeSource = "on-chain" )
type UpgradesConfig ¶
type UpgradesConfig struct {
Upgrades []Upgrade `json:"upgrades"`
}
Click to show internal directories.
Click to hide internal directories.