types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

description: sync_eth

@author: xwc1125 @date: 2020/10/05

description: sync_eth

@author: xwc1125 @date: 2020/10/05

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(c *gin.Context, code int, err error, msg string)

func OK

func OK(c *gin.Context, data interface{}, msg string)

func PageOK

func PageOK(c *gin.Context, result interface{}, count int, page int, limit int, msg string)

Types

type GenesisAccount

type GenesisAccount struct {
	//Code       []byte                    `json:"code,omitempty"`
	//Storage    map[types.Hash]types.Hash `json:"storage,omitempty"`
	Balance *math.HexOrDecimal256 `json:"balance" gencodec:"required"`
}

type GenesisAlloc

type GenesisAlloc map[string]string

type Page

type Page struct {
	Details interface{} `json:"details"`
	Total   int         `json:"total"`
	Page    int         `json:"page"`
	Limit   int         `json:"limit"`
}

type PageResponse

type PageResponse struct {
	Code int    `json:"code" example:"200"`
	Data Page   `json:"data"`
	Msg  string `json:"msg"`
}

func (*PageResponse) ReturnOK

func (res *PageResponse) ReturnOK() *PageResponse

type Response

type Response struct {
	Code int         `json:"code" example:"200"`
	Data interface{} `json:"data"`
	Msg  string      `json:"msg"`
}

func (*Response) ReturnError

func (res *Response) ReturnError(code int) *Response

func (*Response) ReturnOK

func (res *Response) ReturnOK() *Response

Jump to

Keyboard shortcuts

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