Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckController ¶
HealthCheckController is an interface that has all the function to be implemented inside health check controller
type HealthCheckControllerImpl ¶
type HealthCheckControllerImpl struct {
Context context.Context
Config *config.Configuration
Tracer *trace.TracerProvider
HealthCheckSvc service.HealthCheckService
}
HealthCheckControllerImpl is an app health check struct that consists of all the dependencies needed for health check controller
func NewHealthCheckController ¶
func NewHealthCheckController(ctx context.Context, config *config.Configuration, tracer *trace.TracerProvider, healthCheckSvc service.HealthCheckService) *HealthCheckControllerImpl
NewHealthCheckController return new instances health check controller
func (*HealthCheckControllerImpl) Check ¶
func (hc *HealthCheckControllerImpl) Check(ctx echo.Context) error
Check godoc @Summary Checking Health Services @Tags Health Check @Accept json @Produce json @Success 200 {object} helper.BaseResponse @Failure 500 {object} helper.BaseResponse @Router /health-check [get]
type WalletController ¶
type WalletController interface {
CreateWallet(ctx context.Context, req *walletpb.WalletRequest) (*walletpb.WalletResponse, error)
GetCustomerWallet(ctx context.Context, req *walletpb.GetCustomerWalletRequest) (*walletpb.GetCustomerWalletResponse, error)
}
WalletController is an interface that has all the function to be implemented inside Wallet controller
type WalletControllerImpl ¶
type WalletControllerImpl struct {
Context context.Context
Config *config.Configuration
Tracer *trace.TracerProvider
WalletSvc service.WalletService
walletpb.UnimplementedWalletServiceServer
}
WalletControllerImpl is an app Wallet struct that consists of all the dependencies needed for Wallet controller
func NewWalletController ¶
func NewWalletController(ctx context.Context, config *config.Configuration, tracer *trace.TracerProvider, walletSvc service.WalletService) *WalletControllerImpl
NewWalletController return new instances wallet controller
func (*WalletControllerImpl) CreateWallet ¶
func (wc *WalletControllerImpl) CreateWallet(ctx context.Context, req *walletpb.WalletRequest) (*walletpb.WalletResponse, error)
func (*WalletControllerImpl) GetCustomerWallet ¶
func (wc *WalletControllerImpl) GetCustomerWallet(ctx context.Context, req *walletpb.GetCustomerWalletRequest) (*walletpb.GetCustomerWalletResponse, error)