Documentation ¶
Index ¶
- func InitChains(ctx *Context, homePath string, debug bool) error
- func MarshalJSON(config Config) ([]byte, error)
- func UnmarshalJSON(m codec.Codec, bz []byte, config *Config) error
- type Chains
- type Config
- func (c *Config) AddChain(m codec.JSONCodec, config core.ChainProverConfig) error
- func (c *Config) AddPath(name string, path *core.Path) (err error)
- func (c *Config) ChainsFromPath(path string) (map[string]*core.ProvableChain, string, string, error)
- func (c *Config) CreateConfig() error
- func (c *Config) DeleteChain(chain string) *Config
- func (c *Config) GetChain(chainID string) (*core.ProvableChain, error)
- func (c *Config) GetChains(chainIDs ...string) (map[string]*core.ProvableChain, error)
- func (c *Config) InitConfig(ctx *Context, homePath, configPath string, debug bool) error
- func (c *Config) InitCoreConfig()
- func (c *Config) OverWriteConfig() error
- type Context
- type CoreConfig
- type GlobalConfig
- type LoggerConfig
- type ModuleI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitChains ¶
Called to initialize the relayer.Chain types on Config
func MarshalJSON ¶
Types ¶
type Chains ¶
type Chains []*core.ProvableChain
type Config ¶
type Config struct { Global GlobalConfig `yaml:"global" json:"global"` Chains []core.ChainProverConfig `yaml:"chains" json:"chains"` Paths core.Paths `yaml:"paths" json:"paths"` ConfigPath string `yaml:"-" json:"-"` // contains filtered or unexported fields }
func (*Config) ChainsFromPath ¶
func (c *Config) ChainsFromPath(path string) (map[string]*core.ProvableChain, string, string, error)
ChainsFromPath takes the path name and returns the properly configured chains
func (*Config) CreateConfig ¶ added in v0.4.23
func (*Config) DeleteChain ¶
DeleteChain removes a chain from the config
func (*Config) InitConfig ¶ added in v0.4.23
func (*Config) InitCoreConfig ¶ added in v0.4.23
func (c *Config) InitCoreConfig()
func (*Config) OverWriteConfig ¶ added in v0.4.23
type Context ¶
type Context struct { Modules []ModuleI Codec codec.ProtoCodecMarshaler Config *Config }
type CoreConfig ¶ added in v0.4.23
type CoreConfig struct {
// contains filtered or unexported fields
}
func (CoreConfig) UpdateConfigID ¶ added in v0.4.23
func (c CoreConfig) UpdateConfigID(pathName string, chainID string, configID core.ConfigIDType, id string) error
type GlobalConfig ¶
type GlobalConfig struct { Timeout string `yaml:"timeout" json:"timeout"` LightCacheSize int `yaml:"light-cache-size" json:"light-cache-size"` LoggerConfig LoggerConfig `yaml:"logger" json:"logger"` }
GlobalConfig describes any global relayer settings
type LoggerConfig ¶ added in v0.4.7
type ModuleI ¶ added in v0.1.1
type ModuleI interface { // Name returns the name of the module Name() string // RegisterInterfaces register the module interfaces to protobuf Any. RegisterInterfaces(registry codectypes.InterfaceRegistry) // GetCmd returns the command GetCmd(ctx *Context) *cobra.Command }
ModuleI defines an interface of Module
Click to show internal directories.
Click to hide internal directories.