provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderController

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

ProviderController is a controller type for provider endpoints

func NewProviderController

func NewProviderController() *ProviderController

NewProviderController creates a new instance of ProviderController with injected services

func (*ProviderController) AcceptOrder

func (ctrl *ProviderController) AcceptOrder(ctx *gin.Context)

AcceptOrder controller accepts an order

func (*ProviderController) CancelOrder

func (ctrl *ProviderController) CancelOrder(ctx *gin.Context)

CancelOrder controller cancels an order

func (*ProviderController) DeclineOrder

func (ctrl *ProviderController) DeclineOrder(ctx *gin.Context)

DeclineOrder controller declines an order

func (*ProviderController) FulfillOrder

func (ctrl *ProviderController) FulfillOrder(ctx *gin.Context)

FulfillOrder controller fulfills an order

func (*ProviderController) GetLockPaymentOrderByID

func (ctrl *ProviderController) GetLockPaymentOrderByID(ctx *gin.Context)

GetLockPaymentOrderByID controller fetches a payment order by ID

func (*ProviderController) GetLockPaymentOrders

func (ctrl *ProviderController) GetLockPaymentOrders(ctx *gin.Context)

GetLockPaymentOrders controller fetches all assigned orders

func (*ProviderController) GetMarketRate

func (ctrl *ProviderController) GetMarketRate(ctx *gin.Context)

GetMarketRate controller fetches the median rate of the cryptocurrency token against the fiat currency

func (*ProviderController) NodeInfo

func (ctrl *ProviderController) NodeInfo(ctx *gin.Context)

NodeInfo controller fetches the provision node info

func (*ProviderController) Stats

func (ctrl *ProviderController) Stats(ctx *gin.Context)

Stats controller fetches provider stats

func (*ProviderController) UpdateProviderBalance added in v0.0.2

func (ctrl *ProviderController) UpdateProviderBalance(ctx *gin.Context)

UpdateProviderBalance handles the update of provider balance

Jump to

Keyboard shortcuts

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