Versions in this module Expand all Collapse all v0 v0.1.2 Aug 6, 2021 v0.1.1 Jul 8, 2021 Changes in this version + const PR_ACTIVE + const PR_INACTIVE + const PR_SUSPENDED + var LOGGER = logging.MustGetLogger("pr-client") + type MockPRServiceClient struct + ParticipantRegistryDistAccountURL string + ParticipantRegistryDomainURL string + ParticipantRegistryGetAllParticipantsURL string + ParticipantRegistryGetParticipantByAddress string + ParticipantRegistryGetParticipantsByAssetCountryURL string + ParticipantRegistryGetParticipantsByCountryURL string + ParticipantRegistryIssuingAccountURL string + ParticipantRegistryQuoteURL string + URL string + func CreateMockPRServiceClient(url string) (MockPRServiceClient, error) + func (client MockPRServiceClient) GetAllParticipants() ([]model.Participant, error) + func (client MockPRServiceClient) GetParticipantAccount(domain string, account string) (string, error) + func (client MockPRServiceClient) GetParticipantByAddress(address string) (model.Participant, error) + func (client MockPRServiceClient) GetParticipantDistAccount(domain string, account string) (string, error) + func (client MockPRServiceClient) GetParticipantForDomain(participantID string) (model.Participant, error) + func (client MockPRServiceClient) GetParticipantForIssuingAddress(address string) (model.Participant, error) + func (client MockPRServiceClient) GetParticipantIssuingAccount(domain string) (string, error) + func (client MockPRServiceClient) GetParticipantsByCountry(countryCode string) ([]model.Participant, error) + func (client MockPRServiceClient) PostParticipantDistAccount(domain string, account model.Account) error + func (client MockPRServiceClient) PostParticipantIssuingAccount(domain string, account model.Account) error + type PRServiceClient interface + GetAllParticipants func() ([]model.Participant, error) + GetParticipantAccount func(domain string, account string) (string, error) + GetParticipantByAddress func(address string) (model.Participant, error) + GetParticipantDistAccount func(domain string, account string) (string, error) + GetParticipantForDomain func(domain string) (model.Participant, error) + GetParticipantForIssuingAddress func(domain string) (model.Participant, error) + GetParticipantIssuingAccount func(domain string) (string, error) + GetParticipantsByCountry func(countryCode string) ([]model.Participant, error) + PostParticipantDistAccount func(domain string, account model.Account) error + PostParticipantIssuingAccount func(domain string, account model.Account) error + type RestPRServiceClient struct + ParticipantRegistryDistAccountURL string + ParticipantRegistryDomainURL string + ParticipantRegistryGetAllParticipantsURL string + ParticipantRegistryGetParticipantByAddress string + ParticipantRegistryGetParticipantsByAssetCountryURL string + ParticipantRegistryGetParticipantsByCountryURL string + ParticipantRegistryIssuingAccountURL string + ParticipantRegistryQuoteURL string + URL string + func CreateRestPRServiceClient(url string) (RestPRServiceClient, error) + func (client RestPRServiceClient) GetAllParticipants() ([]model.Participant, error) + func (client RestPRServiceClient) GetParticipantAccount(domain string, account string) (string, error) + func (client RestPRServiceClient) GetParticipantByAddress(address string) (model.Participant, error) + func (client RestPRServiceClient) GetParticipantDistAccount(domain string, account string) (string, error) + func (client RestPRServiceClient) GetParticipantForDomain(domain string) (model.Participant, error) + func (client RestPRServiceClient) GetParticipantForIssuingAddress(accountAddress string) (model.Participant, error) + func (client RestPRServiceClient) GetParticipantIssuingAccount(domain string) (string, error) + func (client RestPRServiceClient) GetParticipantsByCountry(countryCode string) ([]model.Participant, error) + func (client RestPRServiceClient) GetParticipantsForAssetPair(sc string, tc string) ([]model.Participant, error) + func (client RestPRServiceClient) PostParticipantDistAccount(domain string, account model.Account) error + func (client RestPRServiceClient) PostParticipantIssuingAccount(domain string, account model.Account) error