controller

package
v0.0.0-...-753941a Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckController

type HealthCheckController interface {
	Check(ctx echo.Context) error
}

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

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 (*WalletControllerImpl) GetCustomerWallet

Jump to

Keyboard shortcuts

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