http

package
v1.23.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

NewRouter registerNewRouters routes to the Server.

Types

type AccountHandler added in v1.10.0

type AccountHandler struct {
	Command *command.UseCase
	Query   *query.UseCase
}

AccountHandler struct contains an account use case for managing account related operations.

func (*AccountHandler) CreateAccount added in v1.10.0

func (handler *AccountHandler) CreateAccount(i any, c *fiber.Ctx) error

CreateAccount is a method that creates account information.

func (*AccountHandler) DeleteAccountByID added in v1.10.0

func (handler *AccountHandler) DeleteAccountByID(c *fiber.Ctx) error

DeleteAccountByID is a method that removes Account information by a given ids.

func (*AccountHandler) GetAccountByID added in v1.10.0

func (handler *AccountHandler) GetAccountByID(c *fiber.Ctx) error

GetAccountByID is a method that retrieves Account information by a given id.

func (*AccountHandler) GetAllAccounts added in v1.10.0

func (handler *AccountHandler) GetAllAccounts(c *fiber.Ctx) error

GetAllAccounts is a method that retrieves all Accounts.

func (*AccountHandler) UpdateAccount added in v1.10.0

func (handler *AccountHandler) UpdateAccount(i any, c *fiber.Ctx) error

UpdateAccount is a method that updates Account information.

type AssetHandler added in v1.11.0

type AssetHandler struct {
	Command *command.UseCase
	Query   *query.UseCase
}

AssetHandler struct contains a cqrs use case for managing asset in related operations.

func (*AssetHandler) CreateAsset added in v1.11.0

func (handler *AssetHandler) CreateAsset(a any, c *fiber.Ctx) error

CreateAsset is a method that creates asset information.

func (*AssetHandler) DeleteAssetByID added in v1.11.0

func (handler *AssetHandler) DeleteAssetByID(c *fiber.Ctx) error

DeleteAssetByID is a method that removes Asset information by a given ids.

func (*AssetHandler) GetAllAssets added in v1.11.0

func (handler *AssetHandler) GetAllAssets(c *fiber.Ctx) error

GetAllAssets is a method that retrieves all Assets.

func (*AssetHandler) GetAssetByID added in v1.11.0

func (handler *AssetHandler) GetAssetByID(c *fiber.Ctx) error

GetAssetByID is a method that retrieves Asset information by a given id.

func (*AssetHandler) UpdateAsset added in v1.11.0

func (handler *AssetHandler) UpdateAsset(a any, c *fiber.Ctx) error

UpdateAsset is a method that updates Asset information.

type LedgerHandler added in v1.10.0

type LedgerHandler struct {
	Command *command.UseCase
	Query   *query.UseCase
}

LedgerHandler struct contains a ledger use case for managing ledger related operations.

func (*LedgerHandler) CreateLedger added in v1.10.0

func (handler *LedgerHandler) CreateLedger(i any, c *fiber.Ctx) error

CreateLedger is a method that creates Ledger information.

func (*LedgerHandler) DeleteLedgerByID added in v1.10.0

func (handler *LedgerHandler) DeleteLedgerByID(c *fiber.Ctx) error

DeleteLedgerByID is a method that removes Ledger information by a given id.

func (*LedgerHandler) GetAllLedgers added in v1.10.0

func (handler *LedgerHandler) GetAllLedgers(c *fiber.Ctx) error

GetAllLedgers is a method that retrieves all ledgers.

func (*LedgerHandler) GetLedgerByID added in v1.10.0

func (handler *LedgerHandler) GetLedgerByID(c *fiber.Ctx) error

GetLedgerByID is a method that retrieves Ledger information by a given id.

func (*LedgerHandler) UpdateLedger added in v1.10.0

func (handler *LedgerHandler) UpdateLedger(p any, c *fiber.Ctx) error

UpdateLedger is a method that updates Ledger information.

type OrganizationHandler added in v1.10.0

type OrganizationHandler struct {
	Command *command.UseCase
	Query   *query.UseCase
}

OrganizationHandler struct contains an organization use case for managing organization related operations.

func (*OrganizationHandler) CreateOrganization added in v1.10.0

func (handler *OrganizationHandler) CreateOrganization(p any, c *fiber.Ctx) error

CreateOrganization is a method that creates Organization information.

func (*OrganizationHandler) DeleteOrganizationByID added in v1.10.0

func (handler *OrganizationHandler) DeleteOrganizationByID(c *fiber.Ctx) error

DeleteOrganizationByID is a method that removes Organization information by a given id.

func (*OrganizationHandler) GetAllOrganizations added in v1.10.0

func (handler *OrganizationHandler) GetAllOrganizations(c *fiber.Ctx) error

GetAllOrganizations is a method that retrieves all Organizations.

func (*OrganizationHandler) GetOrganizationByID added in v1.10.0

func (handler *OrganizationHandler) GetOrganizationByID(c *fiber.Ctx) error

GetOrganizationByID is a method that retrieves Organization information by a given id.

func (*OrganizationHandler) UpdateOrganization added in v1.10.0

func (handler *OrganizationHandler) UpdateOrganization(p any, c *fiber.Ctx) error

UpdateOrganization is a method that updates Organization information.

type PortfolioHandler added in v1.10.0

type PortfolioHandler struct {
	Command *command.UseCase
	Query   *query.UseCase
}

PortfolioHandler struct contains a portfolio use case for managing portfolio related operations.

func (*PortfolioHandler) CreatePortfolio added in v1.10.0

func (handler *PortfolioHandler) CreatePortfolio(i any, c *fiber.Ctx) error

CreatePortfolio is a method that creates portfolio information.

func (*PortfolioHandler) DeletePortfolioByID added in v1.10.0

func (handler *PortfolioHandler) DeletePortfolioByID(c *fiber.Ctx) error

DeletePortfolioByID is a method that removes Portfolio information by a given ids.

func (*PortfolioHandler) GetAllPortfolios added in v1.10.0

func (handler *PortfolioHandler) GetAllPortfolios(c *fiber.Ctx) error

GetAllPortfolios is a method that retrieves all Portfolios.

func (*PortfolioHandler) GetPortfolioByID added in v1.10.0

func (handler *PortfolioHandler) GetPortfolioByID(c *fiber.Ctx) error

GetPortfolioByID is a method that retrieves Portfolio information by a given id.

func (*PortfolioHandler) UpdatePortfolio added in v1.10.0

func (handler *PortfolioHandler) UpdatePortfolio(i any, c *fiber.Ctx) error

UpdatePortfolio is a method that updates Portfolio information.

type ProductHandler added in v1.10.0

type ProductHandler struct {
	Command *command.UseCase
	Query   *query.UseCase
}

ProductHandler struct contains a product use case for managing product related operations.

func (*ProductHandler) CreateProduct added in v1.10.0

func (handler *ProductHandler) CreateProduct(i any, c *fiber.Ctx) error

CreateProduct is a method that creates product information.

func (*ProductHandler) DeleteProductByID added in v1.10.0

func (handler *ProductHandler) DeleteProductByID(c *fiber.Ctx) error

DeleteProductByID is a method that removes Product information by a given ids.

func (*ProductHandler) GetAllProducts added in v1.10.0

func (handler *ProductHandler) GetAllProducts(c *fiber.Ctx) error

GetAllProducts is a method that retrieves all Products.

func (*ProductHandler) GetProductByID added in v1.10.0

func (handler *ProductHandler) GetProductByID(c *fiber.Ctx) error

GetProductByID is a method that retrieves Product information by a given id.

func (*ProductHandler) UpdateProduct added in v1.10.0

func (handler *ProductHandler) UpdateProduct(i any, c *fiber.Ctx) error

UpdateProduct is a method that updates Product information.

Jump to

Keyboard shortcuts

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