handlers

package
v0.0.0-...-33617a9 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(rw http.ResponseWriter, r *http.Request)

GetAccount returns account information

func GetAccountTxs

func GetAccountTxs(rw http.ResponseWriter, r *http.Request)

GetAccountTxs returns transactions associated with an account

func GetAsset

func GetAsset(rw http.ResponseWriter, r *http.Request)

GetAsset returns asset based upon the request params

func GetAssetHolders

func GetAssetHolders(rw http.ResponseWriter, r *http.Request)

GetAssetHolders returns asset holders based upon the request params

func GetAssetTxs

func GetAssetTxs(rw http.ResponseWriter, r *http.Request)

GetAssetTxs returns asset txs

func GetAssets

func GetAssets(rw http.ResponseWriter, r *http.Request)

GetAssets returns assets based upon the request params

func GetAssetsChartHistory

func GetAssetsChartHistory(rw http.ResponseWriter, r *http.Request)

GetAssetsChartHistory returns

func GetAssetsImages

func GetAssetsImages(rw http.ResponseWriter, r *http.Request)

GetAssetsImages returns images of all assets

func GetAssetsMiniTokens

func GetAssetsMiniTokens(rw http.ResponseWriter, r *http.Request)

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

func GetBlocks

func GetBlocks(rw http.ResponseWriter, r *http.Request)

GetBlocks returns blocks based upon the request params

func GetCoinMarketChartData

func GetCoinMarketChartData(rw http.ResponseWriter, r *http.Request)

GetCoinMarketChartData returns market chart data from CoinGecko API

func GetCoinMarketData

func GetCoinMarketData(rw http.ResponseWriter, r *http.Request)

GetCoinMarketData returns market data from CoinGecko API

func GetFees

func GetFees(rw http.ResponseWriter, r *http.Request)

GetFees returns current fee on the active chain

func GetOrders

func GetOrders(rw http.ResponseWriter, r *http.Request)

GetOrders returns order information based up on order id

func GetStatus

func GetStatus(rw http.ResponseWriter, r *http.Request)

GetStatus returns current status on the active chain

func GetTokens

func GetTokens(rw http.ResponseWriter, r *http.Request)

GetTokens returns assets based upon the request params

func GetTxByTxHash

func GetTxByTxHash(rw http.ResponseWriter, r *http.Request)

GetTxByTxHash returns certain transaction information by its tx hash

func GetTxs

func GetTxs(rw http.ResponseWriter, r *http.Request)

GetTxs returns transactions based upon the request params

func GetTxsByTxType

func GetTxsByTxType(rw http.ResponseWriter, r *http.Request)

GetTxsByTxType returns transactions based upon the request params

func GetValidator

func GetValidator(rw http.ResponseWriter, r *http.Request)

GetValidator returns validator information on the active chain

func GetValidators

func GetValidators(rw http.ResponseWriter, r *http.Request)

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