Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatchGroup ¶
type WatchGroup struct { Name string `mapstructure:"group"` TelegramChatID int64 `mapstructure:"telegram_chat_id"` Users []*WatchUser `mapstructure:"users"` Wallets []*WatchWallet `mapstructure:"wallets"` }
type WatchUser ¶
type WatchUser struct { Name string `mapstructure:"name"` TelegramUsername string `mapstructure:"telegram_username"` Wallets []*WatchWallet `mapstructure:"wallets"` WalletAddresses []common.Address Group *WatchGroup }
type WatchWallet ¶
type Watcher ¶
type Watcher struct { Groups map[string]*WatchGroup UserAddresses map[common.Address]*WatchGroup WalletAddresses map[common.Address]*WatchGroup WatchUsers WatcherUsers }
func (*Watcher) ContainsAddressFromSlice ¶
type WatcherUsers ¶
func (*WatcherUsers) Contains ¶
func (wu *WatcherUsers) Contains(address common.Address) bool
Contains returns true if the given string is in the slice.
func (*WatcherUsers) ContainsOneOf ¶
Click to show internal directories.
Click to hide internal directories.