config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Civic

type Civic struct {
	CaptchaGatekeeperNetworkId    *big.Int
	UniquenessGatekeeperNetworkId *big.Int
	GatewayTokenContract          common.Address
	EthereumRpc                   *ethclient.Client
	XDCRpc                        *ethclient.Client
	PolygonRpc                    *ethclient.Client
	ArbitrumRpc                   *ethclient.Client
	SkipSigCheck                  bool
}

type Config

type Config interface {
	comfig.Logger
	pgdb.Databaser
	types.Copuser
	comfig.Listenerer

	Civic() *Civic
	WorldcoinSettings() *WorldcoinSettings
	UnstoppableDomains() *UnstoppableDomains
	GitcoinPassportSettings() *GitcoinPassportSettings
	Issuer() *Issuer
	KYCService() *KYCService
}

func New

func New(getter kv.Getter) Config

type GitcoinPassportSettings

type GitcoinPassportSettings struct {
	// APIkey is the API key for the Gitcoin Passport identity provider
	APIkey string `fig:"api_key,required"`
	// BaseURL is the base URL for the Gitcoin Passport identity provider
	BaseURL string `fig:"base_url"`
	// ScorerId is the ID of the Scorer instance to use for scoring
	ScorerId int `fig:"scorer_id,required"`
	// GateScore is the minimum score required to pass the verification
	GateScore float64 `fig:"gate_score,required"`
	// GetScoreMaxRetries is the maximum number of retries for the GetScore request
	GetScoreMaxRetries int `fig:"get_score_max_retries"`

	// SkipSigCheck is a flag that indicates whether to skip signature verification
	SkipSigCheck bool `fig:"skip_sig_check"`
}

GitcoinPassportSettings is a struct that contains the settings for the Gitcoin Passport identity provider

type Issuer

type Issuer struct {
	BaseURL      string `fig:"base_url"`
	AuthUsername string `fig:"auth_username"`
	AuthPassword string `fig:"auth_password"`
	SchemaType   string `fig:"schema_type"`
	SchemaURL    string `fig:"schema_url"`
}

type KYCService

type KYCService struct {
	NonceLifeTime time.Duration `fig:"nonce_life_time,required"`
}

type UnstoppableDomains

type UnstoppableDomains struct {
	AuthBaseURL string `fig:"auth_base_url"`
}

type WorldcoinSettings

type WorldcoinSettings struct {
	BaseURL string `fig:"base_url"`
}

WorldcoinSettings is a struct that contains the settings for the Worldcoin identity provider

Jump to

Keyboard shortcuts

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