Documentation ¶
Index ¶
- func NewRouter(lg mlog.Logger, cc *mcasdoor.CasdoorConnection, ah *AccountHandler, ...) *fiber.App
- type AccountHandler
- func (handler *AccountHandler) CreateAccount(i any, c *fiber.Ctx) error
- func (handler *AccountHandler) DeleteAccountByID(c *fiber.Ctx) error
- func (handler *AccountHandler) GetAccountByID(c *fiber.Ctx) error
- func (handler *AccountHandler) GetAccountByIDFromPortfolio(c *fiber.Ctx) error
- func (handler *AccountHandler) GetAllAccountsByIDFromPortfolio(c *fiber.Ctx) error
- func (handler *AccountHandler) SearchAllAccounts(i any, c *fiber.Ctx) error
- func (handler *AccountHandler) UpdateAccount(i any, c *fiber.Ctx) error
- type AssetHandler
- func (handler *AssetHandler) CreateAsset(a any, c *fiber.Ctx) error
- func (handler *AssetHandler) DeleteAssetByID(c *fiber.Ctx) error
- func (handler *AssetHandler) GetAllAssets(c *fiber.Ctx) error
- func (handler *AssetHandler) GetAssetByID(c *fiber.Ctx) error
- func (handler *AssetHandler) UpdateAsset(a any, c *fiber.Ctx) error
- type LedgerHandler
- func (handler *LedgerHandler) CreateLedger(i any, c *fiber.Ctx) error
- func (handler *LedgerHandler) DeleteLedgerByID(c *fiber.Ctx) error
- func (handler *LedgerHandler) GetAllLedgers(c *fiber.Ctx) error
- func (handler *LedgerHandler) GetLedgerByID(c *fiber.Ctx) error
- func (handler *LedgerHandler) UpdateLedger(p any, c *fiber.Ctx) error
- type OrganizationHandler
- func (handler *OrganizationHandler) CreateOrganization(p any, c *fiber.Ctx) error
- func (handler *OrganizationHandler) DeleteOrganizationByID(c *fiber.Ctx) error
- func (handler *OrganizationHandler) GetAllOrganizations(c *fiber.Ctx) error
- func (handler *OrganizationHandler) GetOrganizationByID(c *fiber.Ctx) error
- func (handler *OrganizationHandler) UpdateOrganization(p any, c *fiber.Ctx) error
- type PortfolioHandler
- func (handler *PortfolioHandler) CreatePortfolio(i any, c *fiber.Ctx) error
- func (handler *PortfolioHandler) DeletePortfolioByID(c *fiber.Ctx) error
- func (handler *PortfolioHandler) GetAllPortfolios(c *fiber.Ctx) error
- func (handler *PortfolioHandler) GetPortfolioByID(c *fiber.Ctx) error
- func (handler *PortfolioHandler) UpdatePortfolio(i any, c *fiber.Ctx) error
- type ProductHandler
- func (handler *ProductHandler) CreateProduct(i any, c *fiber.Ctx) error
- func (handler *ProductHandler) DeleteProductByID(c *fiber.Ctx) error
- func (handler *ProductHandler) GetAllProducts(c *fiber.Ctx) error
- func (handler *ProductHandler) GetProductByID(c *fiber.Ctx) error
- func (handler *ProductHandler) UpdateProduct(i any, c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(lg mlog.Logger, cc *mcasdoor.CasdoorConnection, ah *AccountHandler, ph *PortfolioHandler, lh *LedgerHandler, ih *AssetHandler, oh *OrganizationHandler, rh *ProductHandler) *fiber.App
NewRouter registerNewRouters routes to the Server.
Types ¶
type AccountHandler ¶ added in v1.10.0
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 account id.
func (*AccountHandler) GetAccountByIDFromPortfolio ¶ added in v1.26.0
func (handler *AccountHandler) GetAccountByIDFromPortfolio(c *fiber.Ctx) error
GetAccountByIDFromPortfolio is a method that retrieves Account information by a given portfolio id and account id.
Will be deprecated in the future. Use GetAccountByID instead.
func (*AccountHandler) GetAllAccountsByIDFromPortfolio ¶ added in v1.26.0
func (handler *AccountHandler) GetAllAccountsByIDFromPortfolio(c *fiber.Ctx) error
GetAllAccountsByIDFromPortfolio is a method that retrieves all Accounts by a given portfolio id.
Will be deprecated in the future. Use SearchAllAccounts instead.
func (*AccountHandler) SearchAllAccounts ¶
func (handler *AccountHandler) SearchAllAccounts(i any, c *fiber.Ctx) error
SearchAllAccounts 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
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
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
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
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
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.