handlers

package
v0.0.0-...-7c8ce1f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(c *gin.Context)

GetAccount returns account information

func GetAccountTxs

func GetAccountTxs(c *gin.Context)

GetAccountTxs returns transactions associated with an account

func GetAsset

func GetAsset(c *gin.Context)

GetAsset returns asset based upon the request params

func GetAssetHolders

func GetAssetHolders(c *gin.Context)

GetAssetHolders returns asset holders based upon the request params

func GetAssetTxs

func GetAssetTxs(c *gin.Context)

GetAssetTxs returns asset txs

func GetAssets

func GetAssets(c *gin.Context)

GetAssets returns assets based upon the request params

func GetAssetsChartHistory

func GetAssetsChartHistory(c *gin.Context)

GetAssetsChartHistory returns

func GetAssetsImages

func GetAssetsImages(c *gin.Context)

GetAssetsImages returns images of all assets

func GetAssetsMiniTokens

func GetAssetsMiniTokens(c *gin.Context)

GetAssetsMiniTokens returns a list of mini tokens based upon the request params.

func GetBlocks

func GetBlocks(c *gin.Context)

GetBlocks returns blocks based upon the request params

func GetCoinMarketChartData

func GetCoinMarketChartData(c *gin.Context)

GetCoinMarketChartData returns market chart data from CoinGecko API

func GetCoinMarketData

func GetCoinMarketData(c *gin.Context)

GetCoinMarketData returns market data from CoinGecko API

func GetFees

func GetFees(c *gin.Context)

GetFees returns current fee on the active chain

func GetOrders

func GetOrders(c *gin.Context)

GetOrders returns order information based up on order id

func GetStatus

func GetStatus(c *gin.Context)

GetStatus returns current status on the active chain

func GetTokens

func GetTokens(c *gin.Context)

GetTokens returns assets based upon the request params

func GetTxByTxHash

func GetTxByTxHash(c *gin.Context)

GetTxByTxHash returns certain transaction information by its tx hash

func GetTxs

func GetTxs(c *gin.Context)

GetTxs returns transactions based upon the request params

func GetTxsByTxType

func GetTxsByTxType(c *gin.Context)

GetTxsByTxType returns transactions based upon the request params

func GetValidator

func GetValidator(c *gin.Context)

GetValidator returns validator information on the active chain

func GetValidators

func GetValidators(c *gin.Context)

GetValidators returns validators on the active chain

func Middleware

func Middleware(next http.Handler, c *client.Client, db *db.Database, l log.Logger) http.Handler

Middleware logs incoming requests and calls next handler

func SetSession

func SetSession(client *client.Client, db *db.Database, log log.Logger)

SetSession set Session object.

Types

type Session

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

Session is struct for wrapping both client and db structs.

Jump to

Keyboard shortcuts

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