handlers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoutes

func NewRoutes(params AdminRoutesParams) (echofx.RouteRegistrar, error)

Types

type AdminRoutes

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

func (*AdminRoutes) RegisterRoutes

func (a *AdminRoutes) RegisterRoutes(e *echo.Echo)

type AdminRoutesParams added in v0.2.3

type AdminRoutesParams struct {
	fx.In

	Identity       app.IdentityConfig
	PaymentHandler *PaymentHandler `optional:"true"`
	Registry       *dynamic.Registry
	Bridge         *dynamic.ViperBridge
}

type ConfigHandler added in v0.2.3

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

ConfigHandler handles dynamic configuration API requests.

func NewConfigHandler added in v0.2.3

func NewConfigHandler(registry *dynamic.Registry, bridge *dynamic.ViperBridge) *ConfigHandler

NewConfigHandler creates a new ConfigHandler.

func (*ConfigHandler) GetConfig added in v0.2.3

func (h *ConfigHandler) GetConfig(c echo.Context) error

GetConfig returns the current dynamic configuration values. GET /admin/config

func (*ConfigHandler) ReloadConfig added in v0.2.3

func (h *ConfigHandler) ReloadConfig(c echo.Context) error

ReloadConfig reloads the configuration from the config file. POST /admin/config/reload

func (*ConfigHandler) UpdateConfig added in v0.2.3

func (h *ConfigHandler) UpdateConfig(c echo.Context) error

UpdateConfig updates one or more dynamic configuration values. PATCH /admin/config

type PaymentHandler added in v0.2.2

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

func NewPaymentHandler added in v0.2.2

func NewPaymentHandler(payment smartcontracts.Payment, pdpConfig app.PDPServiceConfig, serviceView smartcontracts.Service, serviceValidator smartcontracts.ServiceValidator, ethClient *ethclient.Client, sender ethsender.Sender, db *gorm.DB) *PaymentHandler

func (*PaymentHandler) EstimateSettlement added in v0.2.2

func (h *PaymentHandler) EstimateSettlement(ctx echo.Context) error

EstimateSettlement returns estimated gas and fees for settling a rail

func (*PaymentHandler) EstimateWithdraw added in v0.2.2

func (h *PaymentHandler) EstimateWithdraw(ctx echo.Context) error

EstimateWithdraw returns estimated gas for a withdrawal

func (*PaymentHandler) GetAccountInfo added in v0.2.2

func (h *PaymentHandler) GetAccountInfo(ctx echo.Context) error

func (*PaymentHandler) GetSettlementStatus added in v0.2.2

func (h *PaymentHandler) GetSettlementStatus(ctx echo.Context) error

GetSettlementStatus returns the status of a pending settlement for a rail

func (*PaymentHandler) GetWithdrawalStatus added in v0.2.2

func (h *PaymentHandler) GetWithdrawalStatus(ctx echo.Context) error

GetWithdrawalStatus returns the status of a pending withdrawal

func (*PaymentHandler) SettleRail added in v0.2.2

func (h *PaymentHandler) SettleRail(ctx echo.Context) error

SettleRail submits a settlement transaction

func (*PaymentHandler) Withdraw added in v0.2.2

func (h *PaymentHandler) Withdraw(ctx echo.Context) error

Withdraw submits a withdrawal transaction

Jump to

Keyboard shortcuts

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