Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyIOST(c echo.Context) error
- func CalculateAward(c echo.Context, ainfo db.AwardInfo) (err error)
- func DropDatabase(c echo.Context) error
- func GetAccountDetail(c echo.Context) error
- func GetAccountTxs(c echo.Context) error
- func GetAccounts(c echo.Context) error
- func GetBPLastProducer(c echo.Context) (err error)
- func GetBPList(c echo.Context) error
- func GetBlockDetail(c echo.Context) error
- func GetBlocks(c echo.Context) error
- func GetIndexBlocks(c echo.Context) error
- func GetIndexTxns(c echo.Context) error
- func GetMarket(c echo.Context) error
- func GetProducerAward(c echo.Context) (err error)
- func GetProducerContributionAward(c echo.Context) (err error)
- func GetSearch(c echo.Context) error
- func GetTxnDetail(c echo.Context) error
- func GetTxs(c echo.Context) error
- func GetUserAward(c echo.Context) error
- func GetUserContributionAward(c echo.Context) error
- func GetVoteAwardInfo(c echo.Context) (err error)
- func GetVoteAwardList(c echo.Context) (err error)
- func RegistBP(c echo.Context) (err error)
- func SendMail(c echo.Context) error
- func SetProducerContributions(c echo.Context) (err error)
- func SetVoteAwardInfo(c echo.Context) (err error)
- func SyncBP()
- type AccountOutput
- type AccountTxsOutput
- type AccountsOutput
- type BPAccountDetail
- type BlockListOutput
- type CommOutput
- type ErrorResponse
- type GCAPResponse
- type Response
- type SearchOutput
- type TxsOutput
Constants ¶
View Source
const ( AccountEachPage = 25 AccountMaxPage = 20 GCAPVerifyUrl = "https://www.google.com/recaptcha/api/siteverify" GCAPSecretKey = "6Lc1vF8UAAAAAGv1XihAK4XygBMn3UobipWMqBym" ApplyAccountPerIPPerDay = 5 ApplyHost = "127.0.0.1:8005" ApplyNet = "testnet" ApplyMK = "createdByExplorer" )
View Source
const ( TxEachPageNum = 25 TxMaxPage = 20 )
View Source
const (
BlockEachPageNum = 30
)
Variables ¶
View Source
var ( GCAPHttpClient *http.Client ApplyHTTPClient *http.Client ErrGreCaptcha = errors.New("reCAPTCHA check failed") ErrApplyFreq = errors.New("client ip create account exceeds limit") )
View Source
var ( ErrInvalidInput = errors.New("invalid input") ErrMobileVerfiy = errors.New("mobile verify failed") ErrOutOfRetryTime = errors.New("out of retry time") ErrOutOfCheckTxHash = errors.New("out of check txHash retry time") RegEmail = regexp.MustCompile(`\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*`) )
Functions ¶
func DropDatabase ¶
func GetAccountDetail ¶
func GetAccountTxs ¶
func GetAccounts ¶
func GetBPLastProducer ¶
func GetBlockDetail ¶
func GetIndexBlocks ¶
func GetIndexTxns ¶
func GetProducerAward ¶
func GetTxnDetail ¶
func GetUserAward ¶
func GetVoteAwardInfo ¶
func GetVoteAwardList ¶
func SetVoteAwardInfo ¶
Types ¶
type AccountOutput ¶
type AccountTxsOutput ¶
type AccountsOutput ¶
type BPAccountDetail ¶
type BlockListOutput ¶
type CommOutput ¶
type ErrorResponse ¶
type GCAPResponse ¶
type Response ¶
type Response struct { Code int `json:"code"` Data interface{} `json:"data"` }
func FormatResponse ¶
func FormatResponse(data interface{}) Response
func FormatResponseFailed ¶
func FormatResponseFailed(data interface{}) Response
type SearchOutput ¶
Click to show internal directories.
Click to hide internal directories.