httphandler

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTokensScope added in v0.4.6

type GetTokensScope string
const (
	GetTokensScopeAll     GetTokensScope = "all"
	GetTokensScopeOngoing GetTokensScope = "ongoing"
)

func (GetTokensScope) IsValid added in v0.4.6

func (s GetTokensScope) IsValid() bool

type HttpHandler

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

func New

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

func (*HttpHandler) GetBalances added in v0.3.0

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

func (*HttpHandler) GetBalancesBatch added in v0.3.0

func (h *HttpHandler) GetBalancesBatch(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) GetTokens added in v0.4.6

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

func (*HttpHandler) GetTransactions

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

func (*HttpHandler) GetUTXOs added in v0.3.0

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

func (*HttpHandler) GetUTXOsOutputByLocation added in v0.4.0

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

func (*HttpHandler) GetUTXOsOutputByLocationBatch added in v0.4.0

func (h *HttpHandler) GetUTXOsOutputByLocationBatch(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