Documentation ¶
Index ¶
- func NewRouter(ah *AccountHandler, ph *PortfolioHandler, lh *LedgerHandler, ...) *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) GetAllAccounts(c *fiber.Ctx) error
- func (handler *AccountHandler) UpdateAccount(i any, c *fiber.Ctx) error
- type InstrumentHandler
- func (handler *InstrumentHandler) CreateInstrument(a any, c *fiber.Ctx) error
- func (handler *InstrumentHandler) DeleteInstrumentByID(c *fiber.Ctx) error
- func (handler *InstrumentHandler) GetAllInstruments(c *fiber.Ctx) error
- func (handler *InstrumentHandler) GetInstrumentByID(c *fiber.Ctx) error
- func (handler *InstrumentHandler) UpdateInstrument(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(ah *AccountHandler, ph *PortfolioHandler, lh *LedgerHandler, ih *InstrumentHandler, oh *OrganizationHandler, rh *ProductHandler) *fiber.App
NewRouter registers 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 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 InstrumentHandler ¶ added in v1.10.0
InstrumentHandler struct contains an instrument use case for managing instrument related operations.
func (*InstrumentHandler) CreateInstrument ¶ added in v1.10.0
func (handler *InstrumentHandler) CreateInstrument(a any, c *fiber.Ctx) error
CreateInstrument is a method that creates instrument information.
func (*InstrumentHandler) DeleteInstrumentByID ¶ added in v1.10.0
func (handler *InstrumentHandler) DeleteInstrumentByID(c *fiber.Ctx) error
DeleteInstrumentByID is a method that removes Instrument information by a given ids.
func (*InstrumentHandler) GetAllInstruments ¶ added in v1.10.0
func (handler *InstrumentHandler) GetAllInstruments(c *fiber.Ctx) error
GetAllInstruments is a method that retrieves all Instruments.
func (*InstrumentHandler) GetInstrumentByID ¶ added in v1.10.0
func (handler *InstrumentHandler) GetInstrumentByID(c *fiber.Ctx) error
GetInstrumentByID is a method that retrieves Instrument information by a given id.
func (*InstrumentHandler) UpdateInstrument ¶ added in v1.10.0
func (handler *InstrumentHandler) UpdateInstrument(a any, c *fiber.Ctx) error
UpdateInstrument is a method that updates Instrument 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.