types

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNodeTypeNames

func AllNodeTypeNames() []string

Types

type ApiAppToml added in v1.0.13

type ApiAppToml struct {
	Enable  bool `toml:"enable"`
	Swagger bool `toml:"swagger"`
}

type AppToml added in v1.0.13

type AppToml struct {
	MinimumGasPrices  string            `toml:"minimum-gas-prices"`
	Pruning           string            `toml:"pruning"`
	PruningKeepRecent string            `toml:"pruning-keep-recent"`
	PruningInterval   string            `toml:"pruning-interval"`
	HaltHeight        int64             `toml:"halt-height"`
	HaltTime          int64             `toml:"halt-time"`
	MinRetainsBlock   uint              `toml:"min-retain-blocks"`
	Api               *ApiAppToml       `toml:"api"`
	JsonRpc           *JsonRpcAppToml   `toml:"json-rpc"`
	StateSync         *StateSyncAppToml `toml:"state-sync"`
	Grpc              *GrpcAppToml      `toml:"grpc"`
}

type ConfigToml added in v1.0.13

type ConfigToml struct {
	Moniker   string               `toml:"moniker"`
	P2P       *P2pConfigToml       `toml:"p2p"`
	StateSync *StateSyncConfigToml `toml:"statesync"`
	Consensus *ConsensusConfigToml `toml:"consensus"`
	TxIndex   *TxIndexConfigToml   `toml:"tx_index"`
}

type ConsensusConfigToml added in v1.0.13

type ConsensusConfigToml struct {
	DoubleSignCheckHeight uint `toml:"double_sign_check_height"`
	SkipTimeoutCommit     bool `toml:"skip_timeout_commit"`
}

type FilePerm

type FilePerm struct {
	User  Perm
	Group Perm
	Other Perm
}

func FilePermFrom

func FilePermFrom(mode os.FileMode) FilePerm

type GrpcAppToml added in v1.0.13

type GrpcAppToml struct {
	Enable         bool   `toml:"enable"`
	Address        string `toml:"address"`
	MaxSendMsgSize string `toml:"max-send-msg-size"`
}

type JsonRpcAppToml added in v1.0.13

type JsonRpcAppToml struct {
	Enable        bool `toml:"enable"`
	EnableIndexer bool `toml:"enable-indexer"`
}

type NodeType

type NodeType int8
const (
	UnspecifiedNodeType NodeType = iota
	ValidatorNode
	RpcNode
	SnapshotNode
	ArchivalNode
)

func NodeTypeFromString

func NodeTypeFromString(name string) NodeType

func (NodeType) String

func (t NodeType) String() string

type P2pConfigToml added in v1.0.13

type P2pConfigToml struct {
	Seeds               string `toml:"seeds"`
	Laddr               string `toml:"laddr"`
	PersistentPeers     string `toml:"persistent_peers"`
	MaxNumInboundPeers  int    `toml:"max_num_inbound_peers"`
	MaxNumOutboundPeers int    `toml:"max_num_outbound_peers"`
	SeedMode            bool   `toml:"seed_mode"`
}

type Perm

type Perm struct {
	Read  bool
	Write bool
	Exec  bool
}

func (Perm) AnyPermission

func (p Perm) AnyPermission() bool

func (Perm) IsFullPermission

func (p Perm) IsFullPermission() bool

type StateSyncAppToml added in v1.0.13

type StateSyncAppToml struct {
	SnapshotInterval   uint `toml:"snapshot-interval"`
	SnapshotKeepRecent uint `toml:"snapshot-keep-recent"`
}

type StateSyncConfigToml added in v1.0.13

type StateSyncConfigToml struct {
	Enable bool `toml:"enable"`
}

type TxIndexConfigToml added in v1.0.13

type TxIndexConfigToml struct {
	Indexer string `toml:"indexer"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL