block

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 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 GetBlockLogic

type GetBlockLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetBlockLogic

func NewGetBlockLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetBlockLogic

func (*GetBlockLogic) GetBlock

func (l *GetBlockLogic) GetBlock(req *types.ReqGetBlock) (resp *types.Block, err error)

type GetBlocksLogic

type GetBlocksLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetBlocksLogic

func NewGetBlocksLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetBlocksLogic

func (*GetBlocksLogic) GetBlocks

func (l *GetBlocksLogic) GetBlocks(req *types.ReqGetRange) (*types.Blocks, error)

type GetCurrentHeightLogic

type GetCurrentHeightLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetCurrentHeightLogic

func NewGetCurrentHeightLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetCurrentHeightLogic

func (*GetCurrentHeightLogic) GetCurrentHeight

func (l *GetCurrentHeightLogic) GetCurrentHeight() (resp *types.CurrentHeight, err error)

Jump to

Keyboard shortcuts

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