Documentation ¶
Index ¶
- func NewRouter(lg mlog.Logger, tl *mopentelemetry.Telemetry, cc *mcasdoor.CasdoorConnection, ...) *fiber.App
- type AssetRateHandler
- type OperationHandler
- func (handler *OperationHandler) GetAllOperationsByAccount(c *fiber.Ctx) error
- func (handler *OperationHandler) GetAllOperationsByPortfolio(c *fiber.Ctx) error
- func (handler *OperationHandler) GetOperationByAccount(c *fiber.Ctx) error
- func (handler *OperationHandler) GetOperationByPortfolio(c *fiber.Ctx) error
- func (handler *OperationHandler) UpdateOperation(p any, c *fiber.Ctx) error
- type TransactionHandler
- func (handler *TransactionHandler) CommitTransaction(c *fiber.Ctx) error
- func (handler *TransactionHandler) CreateTransactionDSL(c *fiber.Ctx) error
- func (handler *TransactionHandler) CreateTransactionJSON(p any, c *fiber.Ctx) error
- func (handler *TransactionHandler) CreateTransactionTemplate(p any, c *fiber.Ctx) error
- func (handler *TransactionHandler) GetAllTransactions(c *fiber.Ctx) error
- func (handler *TransactionHandler) GetTransaction(c *fiber.Ctx) error
- func (handler *TransactionHandler) RevertTransaction(c *fiber.Ctx) error
- func (handler *TransactionHandler) UpdateTransaction(p any, c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(lg mlog.Logger, tl *mopentelemetry.Telemetry, cc *mcasdoor.CasdoorConnection, th *TransactionHandler, oh *OperationHandler, ah *AssetRateHandler) *fiber.App
Types ¶
type AssetRateHandler ¶ added in v1.24.0
AssetRateHandler struct contains a cqrs use case for managing asset rate.
func (*AssetRateHandler) CreateAssetRate ¶ added in v1.24.0
func (handler *AssetRateHandler) CreateAssetRate(p any, c *fiber.Ctx) error
CreateAssetRate creates a new asset rate.
func (*AssetRateHandler) GetAssetRate ¶ added in v1.25.0
func (handler *AssetRateHandler) GetAssetRate(c *fiber.Ctx) error
GetAssetRate retrieves an asset rate.
type OperationHandler ¶ added in v1.15.0
OperationHandler struct contains a cqrs use case for managing operations.
func (*OperationHandler) GetAllOperationsByAccount ¶ added in v1.15.0
func (handler *OperationHandler) GetAllOperationsByAccount(c *fiber.Ctx) error
GetAllOperationsByAccount retrieves all operations by account.
func (*OperationHandler) GetAllOperationsByPortfolio ¶ added in v1.15.0
func (handler *OperationHandler) GetAllOperationsByPortfolio(c *fiber.Ctx) error
func (*OperationHandler) GetOperationByAccount ¶ added in v1.15.0
func (handler *OperationHandler) GetOperationByAccount(c *fiber.Ctx) error
func (*OperationHandler) GetOperationByPortfolio ¶ added in v1.16.0
func (handler *OperationHandler) GetOperationByPortfolio(c *fiber.Ctx) error
func (*OperationHandler) UpdateOperation ¶ added in v1.18.0
func (handler *OperationHandler) UpdateOperation(p any, c *fiber.Ctx) error
UpdateOperation method that patch operation created before
type TransactionHandler ¶ added in v1.15.0
TransactionHandler struct that handle transaction
func (*TransactionHandler) CommitTransaction ¶ added in v1.15.0
func (handler *TransactionHandler) CommitTransaction(c *fiber.Ctx) error
CommitTransaction method that commit transaction created before
func (*TransactionHandler) CreateTransactionDSL ¶ added in v1.21.0
func (handler *TransactionHandler) CreateTransactionDSL(c *fiber.Ctx) error
CreateTransactionDSL method that create transaction using DSL
func (*TransactionHandler) CreateTransactionJSON ¶ added in v1.21.0
func (handler *TransactionHandler) CreateTransactionJSON(p any, c *fiber.Ctx) error
CreateTransactionJSON method that create transaction using JSON
func (*TransactionHandler) CreateTransactionTemplate ¶ added in v1.15.0
func (handler *TransactionHandler) CreateTransactionTemplate(p any, c *fiber.Ctx) error
CreateTransactionTemplate method that create transaction template
func (*TransactionHandler) GetAllTransactions ¶ added in v1.15.0
func (handler *TransactionHandler) GetAllTransactions(c *fiber.Ctx) error
func (*TransactionHandler) GetTransaction ¶ added in v1.15.0
func (handler *TransactionHandler) GetTransaction(c *fiber.Ctx) error
GetTransaction method that get transaction created before
func (*TransactionHandler) RevertTransaction ¶ added in v1.15.0
func (handler *TransactionHandler) RevertTransaction(c *fiber.Ctx) error
RevertTransaction method that revert transaction created before
func (*TransactionHandler) UpdateTransaction ¶ added in v1.15.0
func (handler *TransactionHandler) UpdateTransaction(p any, c *fiber.Ctx) error
UpdateTransaction method that patch transaction created before