bandwidth

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, bm BandwidthKeeper)

BeginBlocker

func EndBlocker

func EndBlocker(
	ctx sdk.Context, req abci.RequestEndBlock, bm BandwidthKeeper)

EndBlocker

func NewQuerier

func NewQuerier(bm BandwidthKeeper) sdk.Querier

creates a querier for account REST endpoints

Types

type BandwidthKeeper

type BandwidthKeeper interface {
	InitGenesis(ctx sdk.Context) error
	DecayMaxMPS(ctx sdk.Context) sdk.Error
	ReCalculateAppBandwidthInfo(ctx sdk.Context) sdk.Error
	CheckBandwidth(ctx sdk.Context, addr sdk.AccAddress, fee auth.StdFee) sdk.Error
	EndBlocker(ctx sdk.Context) sdk.Error
	BeginBlocker(ctx sdk.Context) sdk.Error

	// getter
	GetBandwidthInfo(ctx sdk.Context) (*model.BandwidthInfo, sdk.Error)
	GetBlockInfo(ctx sdk.Context) (*model.BlockInfo, sdk.Error)
	GetAppBandwidthInfo(ctx sdk.Context, accKey linotypes.AccountKey) (*model.AppBandwidthInfo, sdk.Error)
}

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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