provider

package
v0.0.0-...-6269356 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderController

type ProviderController struct{}

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

Jump to

Keyboard shortcuts

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