memorycacheconfig

package
v0.0.0-...-1a43f7c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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