config

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig(path string) (*Config, error)

func (*Config) GetABCIConfig

func (cfg *Config) GetABCIConfig() types.AMOAppConfig

func (*Config) GetLastHeight

func (cfg *Config) GetLastHeight() string

func (*Config) Load

func (cfg *Config) Load() error

func (*Config) Save

func (cfg *Config) Save() error

func (*Config) SetABCIConfig

func (cfg *Config) SetABCIConfig(abciConfig types.AMOAppConfig)

func (*Config) SetLastHeight

func (cfg *Config) SetLastHeight(lastHeight string)

func (*Config) UpdateLastHeight

func (cfg *Config) UpdateLastHeight() error

type ConfigSet

type ConfigSet struct {
	LastHeight string             `json:"last_height"`
	ABCIConfig types.AMOAppConfig `json:"ABCI_config"`
}

Jump to

Keyboard shortcuts

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