Documentation
¶
Overview ¶
Copyright © 2020 Jack Zampolin jack.zampolin@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Jack Zampolin jack.zampolin@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Jack Zampolin <jack.zampolin@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Jack Zampolin jack.zampolin@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Jack Zampolin <jack.zampolin@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func Execute()
- func GetStrategyWithOptions(cmd *cobra.Command, strategy relayer.Strategy) (relayer.Strategy, error)
- type Config
- func (c *Config) AddChain(chain *relayer.Chain) (err error)
- func (c *Config) AddPath(name string, path *relayer.Path) (err error)
- func (c *Config) ChainsFromPath(path string) (map[string]*relayer.Chain, string, string, error)
- func (c *Config) DeleteChain(chain string) *Config
- func (c Config) MustYAML() []byte
- type GlobalConfig
- type PathStatus
- type PathWithStatus
Constants ¶
const ( ORDERED = "ORDERED" UNORDERED = "UNORDERED" )
const (
MB = 1048576 // in bytes
)
const OPEN = "OPEN"
Variables ¶
var ( // Version defines the application version (defined at compile time) Version = "" // Commit defines the application commit hash (defined at compile time) Commit = "" // SDKCommit defines the CosmosSDK commit hash (defined at compile time) SDKCommit = "" )
Functions ¶
Types ¶
type Config ¶
type Config struct { Global GlobalConfig `yaml:"global" json:"global"` Chains relayer.Chains `yaml:"chains" json:"chains"` Paths relayer.Paths `yaml:"paths" json:"paths"` }
Config represents the config file for the relayer
func (*Config) ChainsFromPath ¶
ChainsFromPath takes the path name and returns the properly configured chains
func (*Config) DeleteChain ¶
DeleteChain removes a chain from the 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 PathStatus ¶
type PathWithStatus ¶
type PathWithStatus struct { Path *relayer.Path `yaml:"path" json:"chains"` Status PathStatus `yaml:"status" json:"status"` }