throughputquota

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThroughputQuota

type ThroughputQuota interface {
	// Balance returns the balance of the given identity.
	Balance(id identity.ID) (mana int64, exists bool)

	// BalanceByIDs returns the balances of all known identities.
	BalanceByIDs() (quotaByID map[identity.ID]int64)

	// TotalBalance returns the total amount of throughput quota.
	TotalBalance() (totalQuota int64)

	// Interface embeds the required methods of the module.Interface.
	module.Interface
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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