Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultKeyPassword = "gochain"
)
Variables ¶
View Source
var ( Senders = map[string]NewSenderFunc{} Receivers = map[string]NewReceiverFunc{} )
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct { Address chain.BTPAddress `json:"address"` Endpoint []string `json:"endpoint"` Options json.RawMessage `json:"options,omitempty"` }
type Config ¶
type Config struct {
Relays []*RelayConfig `json:"relays"`
}
type DstConfig ¶
type DstConfig struct { ChainConfig `json:",squash"` KeyStore json.RawMessage `json:"key_store"` KeyPassword string `json:"key_password"` // AWS AWSSecretName string `json:"aws_secret_name,omitempty"` AWSRegion string `json:"aws_region,omitempty"` // TxSizeLimit // is the maximum size of a transaction in bytes TxDataSizeLimit uint64 `json:"tx_data_size_limit"` }
type NewReceiverFunc ¶
type NewReceiverFunc func( src, dst chain.BTPAddress, urls []string, opts json.RawMessage, l log.Logger) (chain.Receiver, error)
type NewSenderFunc ¶
type RelayConfig ¶
type SrcConfig ¶
type SrcConfig struct { ChainConfig `json:",squash"` Offset uint64 `json:"offset"` }
Click to show internal directories.
Click to hide internal directories.