Documentation ¶
Index ¶
Constants ¶
View Source
const DefMessageKO = "KO"
View Source
const DefMessageOK = "OK"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶ added in v1.5.5
type Component interface { Get(x *gin.Context) CptResponse Clean() }
func NewComponent ¶ added in v1.5.5
type CptResponse ¶ added in v1.5.5
type CptResponse struct { InfoResponse StatusResponse }
type FctMessage ¶ added in v1.5.5
type Info ¶ added in v1.5.5
type Info interface { Get(x *gin.Context) InfoResponse Clean() IsValid() bool }
type InfoResponse ¶ added in v1.5.5
type InfoResponse struct { Name string `json:"name"` Release string `json:"release"` HashBuild string `json:"hash_build"` Mandatory bool `json:"mandatory"` }
func (*InfoResponse) Clone ¶ added in v1.5.5
func (i *InfoResponse) Clone() InfoResponse
type Response ¶ added in v1.5.5
type Response struct { InfoResponse StatusResponse Components []CptResponse `json:"components"` // contains filtered or unexported fields }
func (Response) IsOkMandatory ¶ added in v1.5.5
type RouteStatus ¶ added in v1.5.5
type RouteStatus interface { MiddlewareAdd(mdw ...gin.HandlerFunc) HttpStatusCode(codeOk, codeKO, codeWarning int) Get(c *gin.Context) Register(prefix string, register librtr.RegisterRouter) RegisterGroup(group, prefix string, register librtr.RegisterRouterInGroup) ComponentNew(key string, cpt Component) ComponentDel(key string) ComponentDelAll(containKey string) }
func NewVersion ¶ added in v1.5.5
type StatusResponse ¶
func (*StatusResponse) Clone ¶ added in v1.5.5
func (s *StatusResponse) Clone() StatusResponse
Source Files ¶
Click to show internal directories.
Click to hide internal directories.