currency

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExchangeRatePollIntervalConfigEnvName = envConfigPrefix + "EXCHANGE_RATE_POLL_INTERVAL"

	ReserveStatePollIntervalConfigEnvName = envConfigPrefix + "RESERVE_STATE_POLL_INTERVAL"

	AdminPublicKeyConfigEnvName = envConfigPrefix + "ADMIN_PUBLIC_KEY"

	MaxCurrencyCountConfigEnvName = envConfigPrefix + "MAX_CURRENCY_COUNT"
)

Variables

This section is empty.

Functions

func NewCurrencyServer

func NewCurrencyServer(
	log *zap.Logger,
	data ocp_data.Provider,
	antispamGuard *antispam.Guard,
	s3Client *s3.Client,
	configProvider ConfigProvider,
) (currencypb.CurrencyServer, func())

Types

type ConfigProvider added in v0.21.0

type ConfigProvider func() *conf

ConfigProvider defines how config values are pulled

func WithEnvConfigs added in v0.21.0

func WithEnvConfigs() ConfigProvider

WithEnvConfigs returns configuration pulled from environment variables

Jump to

Keyboard shortcuts

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