Documentation ¶
Overview ¶
Package memorycacheconfig implement memorycacheconfig
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
ConfigService fetches consortium and stakeholder configs using a wrapped config service, caching results in-memory.
func NewService ¶
func NewService(config config) *ConfigService
NewService create new ConfigService.
func (*ConfigService) GetConsortium ¶
func (cs *ConfigService) GetConsortium(url, domain string) (*models.ConsortiumFileData, error)
GetConsortium fetches and parses the consortium file at the given domain, caching the value.
func (*ConfigService) GetSidetreeConfig ¶
func (cs *ConfigService) GetSidetreeConfig(url string) (*models.SidetreeConfig, error)
GetSidetreeConfig returns the sidetree config.
func (*ConfigService) GetStakeholder ¶
func (cs *ConfigService) GetStakeholder(url, domain string) (*models.StakeholderFileData, error)
GetStakeholder returns the stakeholder config file fetched by the wrapped config service, caching the value.
Click to show internal directories.
Click to hide internal directories.