config

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: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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