Documentation ¶
Index ¶
- Constants
- func InitStore(v *viper.Viper, cfgFile, logLevel string, createFile bool) error
- type AddressNameServices
- type AlgodReceiver
- type AlgodSender
- type AlgorandPublicKeyFinder
- type BlockscoutPublicKeyFinder
- type BlockscoutReceiver
- type CORS
- type CacheStore
- type DomainNameServices
- type EthereumRPC2
- type EtherscanPublicKeyFinder
- type EtherscanReceiver
- type Fetcher
- type Keystore
- type Logger
- type MailBoxStateBadgerDB
- type MailboxState
- type MailchainAddressNameServices
- type MailchainDomainNameServices
- type MailchainReceiver
- type NACLFileStore
- type NameServiceAddressClient
- type NameServiceDomainClient
- type Network
- func (s *Network) Disabled() bool
- func (s *Network) Kind() string
- func (s *Network) Output() output.Element
- func (s *Network) ProduceNameServiceAddress(ans *AddressNameServices) (nameservice.ReverseLookup, error)
- func (s *Network) ProduceNameServiceDomain(dns *DomainNameServices) (nameservice.ForwardLookup, error)
- func (s *Network) ProducePublicKeyFinders(publicKeyFinders *PublicKeyFinders) (mailbox.PubKeyFinder, error)
- func (s *Network) ProduceReceiver(receivers *Receivers) (mailbox.Receiver, error)
- func (s *Network) ProduceSender(senders *Senders) (sender.Message, error)
- type NetworkClient
- type Protocol
- func (p Protocol) GetAddressNameServices(ans *AddressNameServices) (map[string]nameservice.ReverseLookup, error)
- func (p Protocol) GetDomainNameServices(ans *DomainNameServices) (map[string]nameservice.ForwardLookup, error)
- func (p Protocol) GetPublicKeyFinders(publicKeyFinders *PublicKeyFinders) (map[string]mailbox.PubKeyFinder, error)
- func (p Protocol) GetReceivers(receivers *Receivers) (map[string]mailbox.Receiver, error)
- func (p Protocol) GetSenders(senders *Senders) (map[string]sender.Message, error)
- func (p Protocol) Output() output.Element
- type PublicKeyFinderClient
- type PublicKeyFinders
- type ReceiverClient
- type Receivers
- type RelaySender
- type Root
- type SenderClient
- type Senders
- type SentClient
- type SentStore
- type SentStoreMailchain
- type SentStorePinata
- type SentStoreS3
- type Server
- type SubstratePublicKeyFinder
- type SubstrateRPC
- type Supporter
Constants ¶
const ( // StoreNACLFilestore settings name for nacl encrypted filestore. StoreNACLFilestore = "nacl-filestore" // StoreS3 settings name for S3 storage. StoreS3 = "s3" // StorePinata settings name for Pinata IPFS storage. StorePinata = "pinata" // StoreBadgerDB settings name for badger db storage. StoreBadgerDB = "badgerdb" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressNameServices ¶ added in v0.0.29
type AddressNameServices struct {
// contains filtered or unexported fields
}
AddressNameServices configuration element.
func (AddressNameServices) Output ¶ added in v0.0.36
func (s AddressNameServices) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (AddressNameServices) Produce ¶ added in v0.0.29
func (s AddressNameServices) Produce(client string) (nameservice.ReverseLookup, error)
Produce `nameservice.ReverseLookup` based on configuration settings.
type AlgodReceiver ¶ added in v0.0.70
type AlgodReceiver struct { EnabledProtocolNetworks values.StringSlice Token values.String }
AlgodReceiver configuration element.
func (AlgodReceiver) Output ¶ added in v0.0.70
func (r AlgodReceiver) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (AlgodReceiver) Produce ¶ added in v0.0.70
func (r AlgodReceiver) Produce() (mailbox.Receiver, error)
Produce `mailbox.Receiver` based on configuration settings.
func (AlgodReceiver) Supports ¶ added in v0.0.70
func (r AlgodReceiver) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type AlgodSender ¶ added in v0.0.70
type AlgodSender struct { Address values.String Token values.String // contains filtered or unexported fields }
AlgodSender configuration element.
func (AlgodSender) Output ¶ added in v0.0.70
func (e AlgodSender) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (AlgodSender) Produce ¶ added in v0.0.70
func (e AlgodSender) Produce() (sender.Message, error)
Produce `sender.Message` based on configuration settings.
func (AlgodSender) Supports ¶ added in v0.0.70
func (e AlgodSender) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type AlgorandPublicKeyFinder ¶ added in v0.0.70
type AlgorandPublicKeyFinder struct { EnabledProtocolNetworks values.StringSlice Disabled values.Bool // contains filtered or unexported fields }
AlgorandPublicKeyFinder configuration element.
func (AlgorandPublicKeyFinder) Output ¶ added in v0.0.70
func (r AlgorandPublicKeyFinder) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (AlgorandPublicKeyFinder) Produce ¶ added in v0.0.70
func (r AlgorandPublicKeyFinder) Produce() (mailbox.PubKeyFinder, error)
Produce a `mailbox.PubKeyFinder` base on the configuration.
func (AlgorandPublicKeyFinder) Supports ¶ added in v0.0.70
func (r AlgorandPublicKeyFinder) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type BlockscoutPublicKeyFinder ¶ added in v0.0.45
type BlockscoutPublicKeyFinder struct { EnabledProtocolNetworks values.StringSlice APIKey values.String // contains filtered or unexported fields }
BlockscoutPublicKeyFinder configuration settings.
func (BlockscoutPublicKeyFinder) Output ¶ added in v0.0.45
func (r BlockscoutPublicKeyFinder) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (BlockscoutPublicKeyFinder) Produce ¶ added in v0.0.45
func (r BlockscoutPublicKeyFinder) Produce() (mailbox.PubKeyFinder, error)
Produce `mailbox.PubKeyFinder` based on configuration settings.
func (BlockscoutPublicKeyFinder) Supports ¶ added in v0.0.45
func (r BlockscoutPublicKeyFinder) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type BlockscoutReceiver ¶ added in v0.0.44
type BlockscoutReceiver struct { EnabledProtocolNetworks values.StringSlice // contains filtered or unexported fields }
BlockscoutReceiver configuration element.
func (BlockscoutReceiver) Output ¶ added in v0.0.44
func (r BlockscoutReceiver) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (BlockscoutReceiver) Produce ¶ added in v0.0.44
func (r BlockscoutReceiver) Produce() (mailbox.Receiver, error)
Produce `mailbox.Receiver` based on configuration settings.
func (BlockscoutReceiver) Supports ¶ added in v0.0.44
func (r BlockscoutReceiver) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type CORS ¶
type CORS struct { AllowedOrigins values.StringSlice Disabled values.Bool }
CORS configuration element.
type CacheStore ¶ added in v0.0.60
func (CacheStore) Output ¶ added in v0.0.60
func (s CacheStore) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
type DomainNameServices ¶ added in v0.0.29
type DomainNameServices struct {
// contains filtered or unexported fields
}
DomainNameServices configuration element.
func (DomainNameServices) Output ¶ added in v0.0.36
func (s DomainNameServices) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (DomainNameServices) Produce ¶ added in v0.0.29
func (s DomainNameServices) Produce(client string) (nameservice.ForwardLookup, error)
Produce `nameservice.ForwardLookup` based on configuration settings.
type EthereumRPC2 ¶
EthereumRPC2 configuration element.
func (EthereumRPC2) Output ¶ added in v0.0.36
func (e EthereumRPC2) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (EthereumRPC2) Produce ¶
func (e EthereumRPC2) Produce() (sender.Message, error)
Produce `sender.Message` based on configuration settings.
func (EthereumRPC2) Supports ¶
func (e EthereumRPC2) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type EtherscanPublicKeyFinder ¶
type EtherscanPublicKeyFinder struct { EnabledProtocolNetworks values.StringSlice APIKey values.String // contains filtered or unexported fields }
EtherscanPublicKeyFinder configuration settings.
func (EtherscanPublicKeyFinder) Output ¶ added in v0.0.36
func (r EtherscanPublicKeyFinder) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (EtherscanPublicKeyFinder) Produce ¶
func (r EtherscanPublicKeyFinder) Produce() (mailbox.PubKeyFinder, error)
Produce `mailbox.PubKeyFinder` based on configuration settings.
func (EtherscanPublicKeyFinder) Supports ¶
func (r EtherscanPublicKeyFinder) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type EtherscanReceiver ¶
type EtherscanReceiver struct { EnabledProtocolNetworks values.StringSlice APIKey values.String // contains filtered or unexported fields }
EtherscanReceiver configuration element.
func (EtherscanReceiver) Output ¶ added in v0.0.36
func (r EtherscanReceiver) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (EtherscanReceiver) Produce ¶
func (r EtherscanReceiver) Produce() (mailbox.Receiver, error)
Produce `mailbox.Receiver` based on configuration settings.
func (EtherscanReceiver) Supports ¶
func (r EtherscanReceiver) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type Keystore ¶
Keystore configuration element.
type Logger ¶ added in v0.0.69
type Logger struct { Path values.String Level values.String Console values.Bool MaxBackups values.Int MaxAgeDays values.Int MaxSizeMB values.Int StackTrace values.Bool }
Logger configuration element.
func (*Logger) Output ¶ added in v0.0.69
Output configuration as an `output.Element` for use in exporting configuration.
type MailBoxStateBadgerDB ¶ added in v0.0.43
MailboxStateBadgerDB settings
func (MailBoxStateBadgerDB) Output ¶ added in v0.0.43
func (s MailBoxStateBadgerDB) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
type MailboxState ¶
MailboxState settings for mailbox state storage.
func (MailboxState) Output ¶ added in v0.0.36
func (s MailboxState) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
type MailchainAddressNameServices ¶ added in v0.0.29
type MailchainAddressNameServices struct { BaseURL values.String EnabledProtocolNetworks values.StringSlice }
MailchainAddressNameServices configuration element.
func (MailchainAddressNameServices) Output ¶ added in v0.0.36
func (s MailchainAddressNameServices) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (MailchainAddressNameServices) Produce ¶ added in v0.0.29
func (s MailchainAddressNameServices) Produce() (nameservice.ReverseLookup, error)
Produce `nameservice.ReverseLookup` based on configuration settings.
func (MailchainAddressNameServices) Supports ¶ added in v0.0.29
func (s MailchainAddressNameServices) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type MailchainDomainNameServices ¶ added in v0.0.29
type MailchainDomainNameServices struct { BaseURL values.String EnabledProtocolNetworks values.StringSlice }
MailchainDomainNameServices configuration element.
func (MailchainDomainNameServices) Output ¶ added in v0.0.36
func (s MailchainDomainNameServices) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (MailchainDomainNameServices) Produce ¶ added in v0.0.29
func (s MailchainDomainNameServices) Produce() (nameservice.ForwardLookup, error)
Produce `nameservice.ForwardLookup` based on configuration settings.
func (MailchainDomainNameServices) Supports ¶ added in v0.0.29
func (s MailchainDomainNameServices) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type MailchainReceiver ¶ added in v0.0.53
type MailchainReceiver struct { EnabledProtocolNetworks values.StringSlice Address values.String }
MailchainReceiver configuration element.
func (MailchainReceiver) Output ¶ added in v0.0.53
func (r MailchainReceiver) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (MailchainReceiver) Produce ¶ added in v0.0.53
func (r MailchainReceiver) Produce() (mailbox.Receiver, error)
Produce `mailbox.Receiver` based on configuration settings.
func (MailchainReceiver) Supports ¶ added in v0.0.53
func (r MailchainReceiver) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type NACLFileStore ¶
NACLFileStore configuration element.
func (NACLFileStore) Output ¶ added in v0.0.36
func (n NACLFileStore) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
type NameServiceAddressClient ¶ added in v0.0.29
type NameServiceAddressClient interface { Produce() (nameservice.ReverseLookup, error) Supporter Output() output.Element }
NameServiceAddressClient configuration.
type NameServiceDomainClient ¶ added in v0.0.29
type NameServiceDomainClient interface { Produce() (nameservice.ForwardLookup, error) Supporter Output() output.Element }
NameServiceDomainClient configuration.
type Network ¶
type Network struct { NameServiceAddress values.String NameServiceDomainName values.String PublicKeyFinder values.String Receiver values.String Sender values.String // contains filtered or unexported fields }
Network configuration element.
func (*Network) Output ¶ added in v0.0.36
Output configuration as an `output.Element` for use in exporting configuration.
func (*Network) ProduceNameServiceAddress ¶ added in v0.0.29
func (s *Network) ProduceNameServiceAddress(ans *AddressNameServices) (nameservice.ReverseLookup, error)
ProduceNameServiceAddress returns a `nameservice.ReverseLookup` based on configuration settings for network.
func (*Network) ProduceNameServiceDomain ¶ added in v0.0.29
func (s *Network) ProduceNameServiceDomain(dns *DomainNameServices) (nameservice.ForwardLookup, error)
ProduceNameServiceDomain returns a `nameservice.ForwardLookup` based on configuration settings for network.
func (*Network) ProducePublicKeyFinders ¶
func (s *Network) ProducePublicKeyFinders(publicKeyFinders *PublicKeyFinders) (mailbox.PubKeyFinder, error)
ProducePublicKeyFinders returns a `mailbox.PubKeyFinder` based on configuration settings for network.
func (*Network) ProduceReceiver ¶
ProduceReceiver returns a `mailbox.Receiver` based on configuration settings for network.
type NetworkClient ¶ added in v0.0.36
type NetworkClient interface { ProduceNameServiceDomain(dns *DomainNameServices) (nameservice.ForwardLookup, error) ProduceNameServiceAddress(ans *AddressNameServices) (nameservice.ReverseLookup, error) ProduceSender(senders *Senders) (sender.Message, error) ProduceReceiver(receivers *Receivers) (mailbox.Receiver, error) ProducePublicKeyFinders(publicKeyFinders *PublicKeyFinders) (mailbox.PubKeyFinder, error) Disabled() bool Kind() string Output() output.Element }
NetworkClient full configuration for a network.
type Protocol ¶
type Protocol struct { Networks map[string]NetworkClient Kind string Disabled values.Bool }
Protocol configuration element.
func (Protocol) GetAddressNameServices ¶ added in v0.0.29
func (p Protocol) GetAddressNameServices(ans *AddressNameServices) (map[string]nameservice.ReverseLookup, error)
GetAddressNameServices returns all `nameservice.ReverseLookup` resources from configuration.
func (Protocol) GetDomainNameServices ¶ added in v0.0.29
func (p Protocol) GetDomainNameServices(ans *DomainNameServices) (map[string]nameservice.ForwardLookup, error)
GetDomainNameServices returns all `nameservice.ForwardLookup` resources from configuration.
func (Protocol) GetPublicKeyFinders ¶
func (p Protocol) GetPublicKeyFinders(publicKeyFinders *PublicKeyFinders) (map[string]mailbox.PubKeyFinder, error)
GetPublicKeyFinders returns all `mailbox.PubKeyFinder` resources from configuration.
func (Protocol) GetReceivers ¶
GetReceivers returns all `mailbox.Receiver` resources from configuration.
func (Protocol) GetSenders ¶
GetSenders returns all `sender.Message` resources from configuration.
type PublicKeyFinderClient ¶
type PublicKeyFinderClient interface { Produce() (mailbox.PubKeyFinder, error) Supporter Output() output.Element }
PublicKeyFinderClient configuration.
type PublicKeyFinders ¶
type PublicKeyFinders struct {
// contains filtered or unexported fields
}
PublicKeyFinders configuration element.
func (PublicKeyFinders) Output ¶ added in v0.0.36
func (s PublicKeyFinders) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (PublicKeyFinders) Produce ¶
func (s PublicKeyFinders) Produce(client string) (mailbox.PubKeyFinder, error)
Produce `mailbox.PublicKeyFinder` based on configuration settings.
type ReceiverClient ¶
type ReceiverClient interface { Produce() (mailbox.Receiver, error) Supporter Output() output.Element }
ReceiverClient configuration.
type Receivers ¶
type Receivers struct {
// contains filtered or unexported fields
}
Receivers configuration element.
type RelaySender ¶
type RelaySender struct { EnabledProtocolNetworks values.StringSlice BaseURL values.String }
RelaySender configuration element
func (RelaySender) Output ¶ added in v0.0.36
func (r RelaySender) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (RelaySender) Produce ¶
func (r RelaySender) Produce() (sender.Message, error)
Produce `sender.Message` based on configuration settings.
func (RelaySender) Supports ¶
func (r RelaySender) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type Root ¶ added in v0.0.38
type Root struct { AddressNameServices *AddressNameServices DomainNameServices *DomainNameServices Senders *Senders Receivers *Receivers PublicKeyFinders *PublicKeyFinders // protocol Protocols map[string]*Protocol // Ethereum *Protocol // other Fetcher *Fetcher Keystore *Keystore MailboxState *MailboxState SentStore *SentStore Server *Server CacheStore *CacheStore Logger *Logger }
Root configuration element.
type SenderClient ¶
SenderClient configuration.
type Senders ¶
type Senders struct {
// contains filtered or unexported fields
}
Senders configuration element.
type SentClient ¶
SentClient configuration.
type SentStore ¶
SentStore configuration element
type SentStoreMailchain ¶
type SentStoreMailchain struct { }
SentStoreMailchain configuration element.
type SentStorePinata ¶ added in v0.0.51
SentStorePinata configuration element.
func (SentStorePinata) Output ¶ added in v0.0.51
func (s SentStorePinata) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
type SentStoreS3 ¶
type SentStoreS3 struct { Bucket values.String Region values.String AccessKeyID values.String SecretAccessKey values.String }
SentStoreS3 configuration element.
func (SentStoreS3) Output ¶ added in v0.0.36
func (s SentStoreS3) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
type SubstratePublicKeyFinder ¶ added in v0.0.38
type SubstratePublicKeyFinder struct { EnabledProtocolNetworks values.StringSlice Disabled values.Bool // contains filtered or unexported fields }
SubstratePublicKeyFinder configuration element.
func (SubstratePublicKeyFinder) Output ¶ added in v0.0.38
func (r SubstratePublicKeyFinder) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (SubstratePublicKeyFinder) Produce ¶ added in v0.0.38
func (r SubstratePublicKeyFinder) Produce() (mailbox.PubKeyFinder, error)
Produce a `mailbox.PubKeyFinder` base on the configuration.
func (SubstratePublicKeyFinder) Supports ¶ added in v0.0.38
func (r SubstratePublicKeyFinder) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
type SubstrateRPC ¶ added in v0.0.50
SubstrateRPC configuration element.
func (SubstrateRPC) Output ¶ added in v0.0.50
func (e SubstrateRPC) Output() output.Element
Output configuration as an `output.Element` for use in exporting configuration.
func (SubstrateRPC) Produce ¶ added in v0.0.50
func (e SubstrateRPC) Produce() (sender.Message, error)
Produce `sender.Message` based on configuration settings.
func (SubstrateRPC) Supports ¶ added in v0.0.50
func (e SubstrateRPC) Supports() map[string]bool
Supports a map of what protocol and network combinations are supported.
Source Files ¶
- algod.go
- algorand_pkf.go
- blockscout_pkf.go
- cache_store.go
- etherscan_pkf.go
- ethrpc.go
- fetcher.go
- init.go
- keystore.go
- logger.go
- mailbox_state.go
- nameservice_address.go
- nameservice_domain.go
- network.go
- pkf.go
- producers.go
- protocol.go
- receiver_algod.go
- receiver_blockscout.go
- receiver_etherscan.go
- receiver_mailchain.go
- receivers.go
- relay.go
- root.go
- senders.go
- sentstore.go
- sentstore_mailchain.go
- sentstore_pinata.go
- sentstore_s3.go
- server.go
- settings.go
- substrate_pkf.go
- substraterpc.go
Directories ¶
Path | Synopsis |
---|---|
Package settingstest is a generated GoMock package.
|
Package settingstest is a generated GoMock package. |