Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSyncAlreadyRunning = errors.New("directory sync is already running") ErrSyncNotRunning = errors.New("directory sync is not running") )
Functions ¶
This section is empty.
Types ¶
type PaginatedMembersIterator ¶
type PaginatedMembersIterator struct {
// contains filtered or unexported fields
}
func ListMembers ¶
func ListMembers(client gds.Directory) *PaginatedMembersIterator
func (*PaginatedMembersIterator) Err ¶
func (i *PaginatedMembersIterator) Err() error
func (*PaginatedMembersIterator) Members ¶
func (i *PaginatedMembersIterator) Members() []*members.VASPMember
func (*PaginatedMembersIterator) Next ¶
func (i *PaginatedMembersIterator) Next() bool
type Sync ¶
Syncs the VASPs stored in the Global TRISA Directory (GDS) to local storage for easier counterparty lookup and analysis. This is a background routine that runs at a specified interval and ensures that only counterparties managed by the sync tool are updated in the local database.
func New ¶
func New(conf config.DirectorySyncConfig, network network.Network, store store.CounterpartyStore, echan chan<- error) (s *Sync, err error)
Creates a new directory synchronization service but does not run it.
func (*Sync) Counterparty ¶
func (s *Sync) Counterparty(vaspID string) (vasp *models.Counterparty, err error)
func (*Sync) MakeSourceMap ¶
Click to show internal directories.
Click to hide internal directories.