intern

package
v0.0.0-...-2d2ac8f Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBlockRewardRequest

type GetBlockRewardRequest struct {
	Height int64 `json:"height"`
}

type GetBlockRewardResponse

type GetBlockRewardResponse struct {
	MinerID string  `json:"miner_id"`
	Height  int64   `json:"height"`
	Reward  big.Int `json:"reward"`
}

type GetMinerBlockCountResponse

type GetMinerBlockCountResponse struct {
	MinerID    string  `json:"miner_id"`
	BlockCount int64   `json:"block_count"`
	Reward     big.Int `json:"reward"`
}

type ServiceManage

type ServiceManage struct {
	DB *gorm.DB
}

func (*ServiceManage) GetBlockReward

func (sm *ServiceManage) GetBlockReward(c echo.Context) error

func (*ServiceManage) GetMinerBlockCount

func (sm *ServiceManage) GetMinerBlockCount(c echo.Context) error

func (*ServiceManage) ServeAPI

func (sm *ServiceManage) ServeAPI(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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