credit

package
v1.0.0-beta.160 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventSubsystem = grant.EventSubsystem
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceConnector

type BalanceConnector = credit.BalanceConnector

type BalanceHistoryParams

type BalanceHistoryParams = credit.BalanceHistoryParams

type BalanceSnapshotRepo

type BalanceSnapshotRepo = balance.SnapshotRepo

type CreateGrantInput

type CreateGrantInput = credit.CreateGrantInput

type CreditConnector

type CreditConnector = credit.CreditConnector

func NewCreditConnector

func NewCreditConnector(
	grantRepo GrantRepo,
	balanceSnapshotRepo BalanceSnapshotRepo,
	ownerConnector OwnerConnector,
	streamingConnector streaming.Connector,
	logger *slog.Logger,
	granularity time.Duration,
	publisher eventbus.Publisher,
) CreditConnector

type DBCreateGrantInput

type DBCreateGrantInput = grant.RepoCreateInput

type Engine

type Engine = engine.Engine

type ExpirationPeriod

type ExpirationPeriod = grant.ExpirationPeriod

type ExpirationPeriodDuration

type ExpirationPeriodDuration = grant.ExpirationPeriodDuration

type Grant

type Grant = grant.Grant

type GrantBalanceMap

type GrantBalanceMap = balance.Map

type GrantBalanceNoSavedBalanceForOwnerError

type GrantBalanceNoSavedBalanceForOwnerError = balance.NoSavedBalanceForOwnerError

type GrantBalanceSnapshot

type GrantBalanceSnapshot = balance.Snapshot

type GrantBurnDownHistory

type GrantBurnDownHistory = engine.GrantBurnDownHistory

type GrantBurnDownHistorySegment

type GrantBurnDownHistorySegment = engine.GrantBurnDownHistorySegment

type GrantConnector

type GrantConnector = credit.GrantConnector

type GrantCreatedEvent

type GrantCreatedEvent = grant.CreatedEvent

type GrantNotFoundError

type GrantNotFoundError = credit.GrantNotFoundError

type GrantOrderBy

type GrantOrderBy = grant.OrderBy

type GrantOwner

type GrantOwner = grant.Owner

type GrantRepo

type GrantRepo = grant.Repo

type GrantUsage

type GrantUsage = engine.GrantUsage

type GrantUsageTerminationReason

type GrantUsageTerminationReason = engine.GrantUsageTerminationReason

type GrantVoidedEvent

type GrantVoidedEvent = grant.VoidedEvent

type ListGrantsParams

type ListGrantsParams = grant.ListParams

type NamespacedGrantOwner

type NamespacedGrantOwner = grant.NamespacedOwner

type OwnerConnector

type OwnerConnector = grant.OwnerConnector

type QueryUsageFn

type QueryUsageFn = engine.QueryUsageFn

type SegmentTerminationReason

type SegmentTerminationReason = engine.SegmentTerminationReason

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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