intern

package
v0.0.0-...-e1deddf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFullNodeAPI

func NewFullNodeAPI(ApiURL string, token string) (api.FullNode, error)

func NewFullNodeAPIV2

func NewFullNodeAPIV2(ApiURL string, token string) (api.FullNode, error)

func NewGetFullNodeAPIV1

func NewGetFullNodeAPIV1(envValue string) (api.FullNode, error)

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

type SimpleServerHandler

type SimpleServerHandler struct {
	// contains filtered or unexported fields
}

Have a type with some exported methods

func (*SimpleServerHandler) GetPower

func (h *SimpleServerHandler) GetPower(miner string, heigh string) ([]interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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