stellarconfig

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("stellarconfig")
View Source
var (
	MOCK_DOMAIN = "mock.rdfi.gftn.io"
)

Functions

This section is empty.

Types

type MockStellarConfigFinder

type MockStellarConfigFinder struct {
}

func (MockStellarConfigFinder) GetStellarConfigForDomain

func (MockStellarConfigFinder) GetStellarConfigForDomain(domain string) (StellarConfig, error)

type RestStellarConfigFinder

type RestStellarConfigFinder struct {
	StellarConfigRemaps map[string]string
	StellarConfigScheme string
}

func CreateRestStellarConfigFinder

func CreateRestStellarConfigFinder() (RestStellarConfigFinder, error)

func (RestStellarConfigFinder) GetStellarConfigForDomain

func (finder RestStellarConfigFinder) GetStellarConfigForDomain(domain string) (StellarConfig, error)

type StellarConfig

type StellarConfig struct {
	FederationServiceURL string `toml:"FEDERATION_SERVER"`
	ComplianceServiceURL string `toml:"AUTH_SERVER"`
}

type StellarConfigFinder

type StellarConfigFinder interface {
	GetStellarConfigForDomain(domain string) (StellarConfig, error)
}

Jump to

Keyboard shortcuts

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