httphandler

package
v0.3.0-brc20-1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

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

func New

func New(network common.Network, usecase *usecase.Usecase) *HttpHandler

func (*HttpHandler) GetBalancesByAddress

func (h *HttpHandler) GetBalancesByAddress(ctx *fiber.Ctx) (err error)

func (*HttpHandler) GetBalancesByAddressBatch

func (h *HttpHandler) GetBalancesByAddressBatch(ctx *fiber.Ctx) (err error)

func (*HttpHandler) GetCurrentBlock

func (h *HttpHandler) GetCurrentBlock(ctx *fiber.Ctx) (err error)

func (*HttpHandler) GetHolders

func (h *HttpHandler) GetHolders(ctx *fiber.Ctx) (err error)

func (*HttpHandler) GetTokenInfo

func (h *HttpHandler) GetTokenInfo(ctx *fiber.Ctx) (err error)

func (*HttpHandler) GetTransactions

func (h *HttpHandler) GetTransactions(ctx *fiber.Ctx) (err error)

func (*HttpHandler) GetUTXOsByAddress

func (h *HttpHandler) GetUTXOsByAddress(ctx *fiber.Ctx) (err error)

func (*HttpHandler) Mount

func (h *HttpHandler) Mount(router fiber.Router) error

type HttpResponse

type HttpResponse[T any] struct {
	Error  *string `json:"error"`
	Result *T      `json:"result,omitempty"`
}

Jump to

Keyboard shortcuts

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