async_account

package
v1.10.21-0...-67c1a71 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AirdropperOwnerPublicKeyEnvName = envConfigPrefix + "AIRDROPPER_OWNER_PUBLIC_KEY"
)
View Source
const (
	GiftCardExpiry = 7 * 24 * time.Hour
)

Variables

This section is empty.

Functions

func InitiateProcessToAutoReturnGiftCard

func InitiateProcessToAutoReturnGiftCard(ctx context.Context, data code_data.Provider, giftCardVaultAccount *common.Account, isVoidedByUser bool, balanceLock *balance.OptimisticVersionLock) error

Note: This is the first instance of handling a conditional action, and could be a good guide for similar actions in the future.

todo: This probably belongs somewhere more common

func InitiateProcessToCleanupGiftCardAutoReturn

func InitiateProcessToCleanupGiftCardAutoReturn(ctx context.Context, data code_data.Provider, giftCardVaultAccount *common.Account) error

todo: This probably belongs somewhere more common

func MarkAutoReturnCheckComplete

func MarkAutoReturnCheckComplete(ctx context.Context, data code_data.Provider, record *account.Record) error

func New

func New(data code_data.Provider, configProvider ConfigProvider) async.Service

Types

type ConfigProvider

type ConfigProvider func() *conf

ConfigProvider defines how config values are pulled

func WithEnvConfigs

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