Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- Variables
- func GenerateTransferLogSQL(filter QueryParams, limit int, count bool) string
- func GetDetail(c helper.Context, transferId string) (res schema.Response)
- func GetHistory(c helper.Context, input Query) (res schema.Response)
- func GetTransferTableName(currency string) string
- func To(c helper.Context, input ToParams, signature string) (res schema.Response)
- type Query
- type QueryParams
- type ToParams
Constants ¶
This section is empty.
Variables ¶
View Source
var GetDetailRouter = router.Handler(func(c router.Context) { c.ResponseFunc(nil, func() schema.Response { return GetDetail(helper.NewContext(&c), c.Param("transfer_id")) }) })
View Source
var GetHistoryRouter = router.Handler(func(c router.Context) { var ( input Query ) c.ResponseFunc(c.ShouldBindQuery(&input), func() schema.Response { return GetHistory(helper.NewContext(&c), input) }) })
View Source
var ToRouter = router.Handler(func(c router.Context) { var ( input ToParams ) signature := c.GetHeader(middleware.SignatureHeader) c.ResponseFunc(c.ShouldBindJSON(&input), func() schema.Response { return To(helper.NewContext(&c), input, signature) }) })
Functions ¶
func GenerateTransferLogSQL ¶
func GenerateTransferLogSQL(filter QueryParams, limit int, count bool) string
Types ¶
type QueryParams ¶
Click to show internal directories.
Click to hide internal directories.