handlers

package
v0.0.0-...-bd92ab4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(r *http.Request) config.Config

func CtxConfig

func CtxConfig(cfg config.Config) func(context.Context) context.Context

func CtxLog

func CtxLog(entry *logan.Entry) func(context.Context) context.Context

func CtxStorage

func CtxStorage(storage data.Storage) func(context.Context) context.Context

func ListEVMBalances

func ListEVMBalances(w http.ResponseWriter, r *http.Request)

func ListSupportedChain

func ListSupportedChain(w http.ResponseWriter, r *http.Request)

func ListSupportedEVMTokens

func ListSupportedEVMTokens(w http.ResponseWriter, r *http.Request)

func Log

func Log(r *http.Request) *logan.Entry

func Storage

func Storage(r *http.Request) data.Storage

Types

type ChainBalancesProvider

type ChainBalancesProvider interface {
	GetBalances(ctx context.Context, address string, tokens []chains.TokenInfo) ([]data.Balance, error)
}

Jump to

Keyboard shortcuts

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