Documentation
¶
Index ¶
- Constants
- type App
- type Chain
- type Confile
- func (c *Confile) Parse(fpath string) error
- func (c *Confile) ReadApiEndpoint() string
- func (c *Confile) ReadEarningsAcc() string
- func (c *Confile) ReadMnemonic() string
- func (c *Confile) ReadPriorityTeeList() []string
- func (c *Confile) ReadRpcEndpoints() []string
- func (c *Confile) ReadServicePort() uint16
- func (c *Confile) ReadSignatureAccount() string
- func (c *Confile) ReadSignaturePublickey() []byte
- func (c *Confile) ReadStakingAcc() string
- func (c *Confile) ReadUseCpu() uint32
- func (c *Confile) ReadUseSpace() uint64
- func (c *Confile) ReadWorkspace() string
- func (c *Confile) SetCpuCores(cores int)
- func (c *Confile) SetEarningsAcc(earningsAcc string) error
- func (c *Confile) SetEndpoint(endpoint string)
- func (c *Confile) SetMnemonic(mnemonic string) error
- func (c *Confile) SetPriorityTeeList(tees []string)
- func (c *Confile) SetRpcAddr(rpc []string)
- func (c *Confile) SetServicePort(port uint16) error
- func (c *Confile) SetUseSpace(useSpace uint64)
- func (c *Confile) SetWorkspace(workspace string) error
- type Confiler
Constants ¶
View Source
const DefaultProfile = "conf.yaml"
View Source
const TempleteProfile = `` /* 716-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.8.1
type App struct {
Workspace string `name:"workspace" toml:"workspace" yaml:"workspace"`
Port uint16 `name:"port" toml:"port" yaml:"port"`
Maxusespace uint64 `name:"maxusespace" toml:"maxusespace" yaml:"maxusespace"`
Cores uint32 `name:"cores" toml:"cores" yaml:"cores"`
ApiEndpoint string `name:"apiendpoint" toml:"apiendpoint" yaml:"apiendpoint"`
}
type Chain ¶ added in v0.8.1
type Chain struct {
Mnemonic string `name:"mnemonic" toml:"mnemonic" yaml:"mnemonic"`
Stakingacc string `name:"stakingacc" toml:"stakingacc" yaml:"stakingacc"`
Earningsacc string `name:"earningsacc" toml:"earningsacc" yaml:"earningsacc"`
Timeout uint16 `name:"timeout" toml:"timeout" yaml:"timeout"`
Rpcs []string `name:"rpcs" toml:"rpcs" yaml:"rpcs"`
Tees []string `name:"tees" toml:"tees" yaml:"tees"`
}
type Confile ¶
func NewConfigFile ¶
func NewConfigFile() *Confile
func (*Confile) ReadApiEndpoint ¶ added in v0.8.1
func (*Confile) ReadEarningsAcc ¶
func (*Confile) ReadMnemonic ¶
func (*Confile) ReadPriorityTeeList ¶
func (*Confile) ReadRpcEndpoints ¶
func (*Confile) ReadServicePort ¶
func (*Confile) ReadSignatureAccount ¶
func (*Confile) ReadSignaturePublickey ¶
func (*Confile) ReadStakingAcc ¶
func (*Confile) ReadUseCpu ¶
func (*Confile) ReadUseSpace ¶
func (*Confile) ReadWorkspace ¶
func (*Confile) SetCpuCores ¶ added in v0.8.1
func (*Confile) SetEarningsAcc ¶
func (*Confile) SetEndpoint ¶ added in v0.8.1
func (*Confile) SetMnemonic ¶
func (*Confile) SetPriorityTeeList ¶
func (*Confile) SetRpcAddr ¶
func (*Confile) SetServicePort ¶
func (*Confile) SetUseSpace ¶
func (*Confile) SetWorkspace ¶
type Confiler ¶
type Confiler interface {
Parse(fpath string) error
ReadRpcEndpoints() []string
ReadServicePort() uint16
ReadWorkspace() string
ReadMnemonic() string
ReadStakingAcc() string
ReadEarningsAcc() string
ReadUseSpace() uint64
ReadSignaturePublickey() []byte
ReadSignatureAccount() string
ReadUseCpu() uint32
ReadPriorityTeeList() []string
ReadApiEndpoint() string
}
Click to show internal directories.
Click to hide internal directories.