Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( appConfigStore app.ConfigStore, appMapper app.Mapper, invoiceStore invoice.Store, reader history.Reader, committer ingestion.Committer, client horizon.ClientInterface, clientV2 horizonclient.ClientInterface, webhookClient *webhook.Client, limiter *redis_rate.Limiter, config *Config, ) (transactionpb.TransactionServer, error)
New returns a new transactionpb.TransactionServer.
Types ¶
type Config ¶
type Config struct {
// SubmitTxGlobalLimit is the number of SubmitTransaction requests allowed globally per second.
//
// A value <= 0 indicates that no rate limit is to be applied.
SubmitTxGlobalLimit int
// SubmitTxAppLimit is the number of SubmitTransaction requests allowed per app per second.
//
// A value <= 0 indicates that no rate limit is to be applied.
SubmitTxAppLimit int
}
Click to show internal directories.
Click to hide internal directories.