Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BadRequest = errors.New("Data is corrupted or not valid.")
)
View Source
var (
UnableConnectToDb = errors.New("nable to connect to DB")
)
Functions ¶
func NewConvertController ¶
func NewConvertController(svc services.CurrencyService) *convertController
func NewCurrencyController ¶
func NewCurrencyController(svc services.CurrencyService) *currencyController
func NewStockController ¶
func NewStockController(svc grpc.YahooFinanceService) *stockController
Types ¶
type ServiceStatus ¶
type ServiceStatus string
const ( UP ServiceStatus = "OK" DOWN ServiceStatus = "DOWN" )
type StatusController ¶
type StatusController struct {
// contains filtered or unexported fields
}
func NewStatusController ¶
func NewStatusController(s *models.ServiceInfo, dbManager db.MongoManager) *StatusController
New instance init
func (*StatusController) CheckStatus ¶
func (sc *StatusController) CheckStatus(ctx *gin.Context)
Checks the health of all the dependencies of the service to ensure complete serviceability
type StatusResponce ¶
Click to show internal directories.
Click to hide internal directories.