Documentation
¶
Index ¶
- Constants
- type BalanceConnector
- type BalanceHistoryParams
- type BalanceSnapshotRepo
- type CreateGrantInput
- type CreditConnector
- type DBCreateGrantInput
- type Engine
- type ExpirationPeriod
- type ExpirationPeriodDuration
- type Grant
- type GrantBalanceMap
- type GrantBalanceNoSavedBalanceForOwnerError
- type GrantBalanceSnapshot
- type GrantBurnDownHistory
- type GrantBurnDownHistorySegment
- type GrantConnector
- type GrantCreatedEvent
- type GrantNotFoundError
- type GrantOrderBy
- type GrantOwner
- type GrantRepo
- type GrantUsage
- type GrantUsageTerminationReason
- type GrantVoidedEvent
- type ListGrantsParams
- type NamespacedGrantOwner
- type OwnerConnector
- type QueryUsageFn
- type SegmentTerminationReason
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 ExpirationPeriod ¶
type ExpirationPeriod = grant.ExpirationPeriod
type ExpirationPeriodDuration ¶
type ExpirationPeriodDuration = grant.ExpirationPeriodDuration
type GrantBalanceMap ¶
type GrantBalanceNoSavedBalanceForOwnerError ¶
type GrantBalanceNoSavedBalanceForOwnerError = balance.NoSavedBalanceForOwnerError
type GrantBalanceSnapshot ¶
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 GrantOwner ¶
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
Click to show internal directories.
Click to hide internal directories.