Documentation
¶
Overview ¶
* @Author: hugo * @Date: 2024-05-17 14:04 * @LastEditors: hugo2lee * @LastEditTime: 2025-04-22 21:57 * @FilePath: \gotox\serverx\serverx.go * @Description: * * Copyright (c) 2024 by hugo, All Rights Reserved.
* @Author: hugo * @Date: 2024-04-19 18:02 * @LastEditors: hugo2lee * @LastEditTime: 2025-04-22 21:29 * @FilePath: \gotox\serverx\serverxFeature.go * @Description: * * Copyright (c) 2024 by hugo, All Rights Reserved.
Index ¶
- type Serverx
- func (s *Serverx) EnableAccessLog() *Serverx
- func (s *Serverx) EnableAuth() *Serverx
- func (s *Serverx) EnableMd5Response() *Serverx
- func (s *Serverx) EnableSha1Response() *Serverx
- func (s *Serverx) EnableSha256Response() *Serverx
- func (s *Serverx) EnableWrapLog() *Serverx
- func (s *Serverx) GracefullyDown(notifyCtx context.Context) error
- func (s *Serverx) GracefullyUp(notifyStop func())
- func (s *Serverx) LivenessCheck() *Serverx
- func (s *Serverx) ReadinessCheck() *Serverx
- func (s *Serverx) Run() error
- func (s *Serverx) StarupCheck() *Serverx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serverx ¶
type Serverx struct {
Engine *gin.Engine
AuthMiddle gin.HandlerFunc
HashMiddle gin.HandlerFunc
// contains filtered or unexported fields
}
func (*Serverx) EnableAccessLog ¶
func (*Serverx) EnableAuth ¶
func (*Serverx) EnableMd5Response ¶ added in v0.1.5
func (*Serverx) EnableSha1Response ¶ added in v0.1.5
func (*Serverx) EnableSha256Response ¶ added in v0.1.5
func (*Serverx) EnableWrapLog ¶
func (*Serverx) GracefullyUp ¶
func (s *Serverx) GracefullyUp(notifyStop func())
func (*Serverx) LivenessCheck ¶
func (*Serverx) ReadinessCheck ¶
func (*Serverx) StarupCheck ¶
Click to show internal directories.
Click to hide internal directories.