Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) SetConfigFile ¶
Set the config file to read
type Config ¶
type Config struct { Name string `yaml:"name" mapstructure:"name"` Ship ShipConfig `yaml:"ship" mapstructure:"ship"` Api string `yaml:"api" mapstructure:"api"` Log log.Config `yaml:"log" mapstructure:"log"` Cache Cache `yaml:"cache" mapstructure:"cache"` Redis RedisConfig `yaml:"redis" mapstructure:"redis"` MessageCodec string `yaml:"message_codec" mapstructure:"message_codec"` AbiCache AbiCache `yaml:"abi_cache" mapstructure:"abi_cache"` Telegram TelegramConfig `yaml:"telegram" mapstructure:"telegram"` }
type RedisConfig ¶
type ShipConfig ¶
type ShipConfig struct { Url string `yaml:"url" mapstructure:"url"` IrreversibleOnly bool `yaml:"irreversible_only" mapstructure:"irreversible_only"` MaxMessagesInFlight uint32 `yaml:"max_messages_in_flight" mapstructure:"max_messages_in_flight"` StartBlockNum uint32 `yaml:"start_block_num" mapstructure:"start_block_num"` EndBlockNum uint32 `yaml:"end_block_num" mapstructure:"end_block_num"` Chain string `yaml:"chain" mapstructure:"chain"` Blacklist types.Blacklist `yaml:"blacklist" mapstructure:"blacklist"` BlacklistIsWhitelist bool `yaml:"blacklist_is_whitelist" mapstructure:"blacklist_is_whitelist"` EnableTableDeltas bool `yaml:"table_deltas" mapstructure:"table_deltas"` }
type TelegramConfig ¶
Click to show internal directories.
Click to hide internal directories.