Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FctMessageItem ¶
type FctMessagesAll ¶
Model for function that return 3 string for message : ok : no error found for component and/or main. ko : error found for component and/or main. cpt : message for main status message only that say some of component are in error and are mandatory.
type FctVersion ¶
type Status ¶
type Status interface {
Register(prefix string, register router.RegisterRouter)
RegisterGroup(group, prefix string, register router.RegisterRouterInGroup)
AddComponent(info FctInfo, msg FctMessageItem, health FctHealth, WarnIfError bool, later bool)
AddVersionComponent(vers FctVersion, msg FctMessageItem, health FctHealth, mandatoryComponent bool, later bool)
Get(c *gin.Context)
SetErrorCode(codeOk, codeKO, codeCptNoMandatoryKO int)
}
func NewStatus ¶
func NewStatus(info FctInfo, msg FctMessagesAll, health FctHealth, Header gin.HandlerFunc, later bool) Status
func NewVersionStatus ¶
func NewVersionStatus(vers FctVersion, msg FctMessagesAll, health FctHealth, Header gin.HandlerFunc, later bool) Status
type StatusItemResponse ¶
type StatusResponse ¶
type StatusResponse struct {
StatusItemResponse
Component []StatusItemResponse
}
Click to show internal directories.
Click to hide internal directories.