server

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 30 Imported by: 0

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,
	kin2Client horizon.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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL