handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Balance

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

func BuildTx

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

func CachedStorage

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

func ChainList

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

func ChainsQ

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

func Core

func Core(r *http.Request) core.Core

func CtxBuilder

func CtxBuilder(bp TxBuilder) func(context.Context) context.Context

func CtxCachedStorage

func CtxCachedStorage(s data.Storage) func(context.Context) context.Context

func CtxChainsQ

func CtxChainsQ(entry data.ChainsQ) func(context.Context) context.Context

func CtxCore

func CtxCore(entry core.Core) func(context.Context) context.Context

func CtxLog

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

func CtxProxyRepo

func CtxProxyRepo(entry proxy.ProxyRepo) func(context.Context) context.Context

func CtxStorage

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

func Log

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

func NftList

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

func NftMetadata

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

func ProxyRepo

func ProxyRepo(r *http.Request) proxy.ProxyRepo

func Storage

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

func TransferByID

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

func TransferList

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

Types

type TxBuilder

type TxBuilder interface {
	BuildTx(ctx context.Context, req *resources.BuildTx, txData interface{}) (*resources.UnsubmittedTx, error)
}

func Builder

func Builder(r *http.Request) TxBuilder

Jump to

Keyboard shortcuts

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