server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	rootKP *keypair.Full,
	client horizon.ClientInterface,
	accountNotifier *AccountNotifier,
	channelPool channel.Pool,
	kin2RootKP *keypair.Full,
	kin2Client horizon.ClientInterface,
	kin2AccountNotifier *AccountNotifier,
	kin2ChannelPool channel.Pool,
	limiter *account.Limiter,
) (accountpb.AccountServer, error)

New returns a new account server

Types

type AccountNotifier

type AccountNotifier struct {
	// contains filtered or unexported fields
}

func NewAccountNotifier

func NewAccountNotifier() *AccountNotifier

func (*AccountNotifier) AddStream

func (a *AccountNotifier) AddStream(accountID string, stream *eventStream)

AddStream adds a stream to the notifier.

func (*AccountNotifier) OnTransaction

func (a *AccountNotifier) OnTransaction(xdrData stellar.XDRData)

OnTransaction implements transaction.Notifier.OnTransaction

func (*AccountNotifier) RemoveStream

func (a *AccountNotifier) RemoveStream(accountID string, stream *eventStream)

RemoveStream removes a stream from the notifier.

Jump to

Keyboard shortcuts

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