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) DeleteChain(chain string) *Config
- func (c *Config) GetChain(chainID string) (*core.ProvableChain, error)
- func (c *Config) GetChains(chainIDs ...string) (map[string]*core.ProvableChain, error)
- type Context
- type GlobalConfig
- 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"` // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() Config
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) DeleteChain ¶
DeleteChain removes a chain from the config
type Context ¶
type Context struct { Codec codec.ProtoCodecMarshaler Config *Config }
type GlobalConfig ¶
type GlobalConfig struct { Timeout string `yaml:"timeout" json:"timeout"` LightCacheSize int `yaml:"light-cache-size" json:"light-cache-size"` }
GlobalConfig describes any global relayer settings
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.