Documentation ¶
Overview ¶
Package config implement config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfigService ¶
type MockConfigService struct { GetConsortiumFunc func(string, string) (*models.ConsortiumFileData, error) GetStakeholderFunc func(string, string) (*models.StakeholderFileData, error) GetSidetreeConfigFunc func(string) (*models.SidetreeConfig, error) }
MockConfigService implements a mock config service.
func (*MockConfigService) GetConsortium ¶
func (m *MockConfigService) GetConsortium(url, domain string) (*models.ConsortiumFileData, error)
GetConsortium get the consortium config file for a given domain from the given url.
func (*MockConfigService) GetSidetreeConfig ¶
func (m *MockConfigService) GetSidetreeConfig(url string) (*models.SidetreeConfig, error)
GetSidetreeConfig get the sidetree config.
func (*MockConfigService) GetStakeholder ¶
func (m *MockConfigService) GetStakeholder(url, domain string) (*models.StakeholderFileData, error)
GetStakeholder get the stakeholder config file for a given domain from the given url.
Click to show internal directories.
Click to hide internal directories.