serverx

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

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

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 New

func New(conf *configx.Configx, log logx.Logger) *Serverx

func (*Serverx) EnableAccessLog

func (s *Serverx) EnableAccessLog() *Serverx

func (*Serverx) EnableAuth

func (s *Serverx) EnableAuth() *Serverx

func (*Serverx) EnableMd5Response added in v0.1.5

func (s *Serverx) EnableMd5Response() *Serverx

func (*Serverx) EnableSha1Response added in v0.1.5

func (s *Serverx) EnableSha1Response() *Serverx

func (*Serverx) EnableSha256Response added in v0.1.5

func (s *Serverx) EnableSha256Response() *Serverx

func (*Serverx) EnableWrapLog

func (s *Serverx) EnableWrapLog() *Serverx

func (*Serverx) GracefullyDown

func (s *Serverx) GracefullyDown(notifyCtx context.Context) error

func (*Serverx) GracefullyUp

func (s *Serverx) GracefullyUp(notifyStop func())

func (*Serverx) LivenessCheck

func (s *Serverx) LivenessCheck() *Serverx

func (*Serverx) ReadinessCheck

func (s *Serverx) ReadinessCheck() *Serverx

func (*Serverx) Run

func (s *Serverx) Run() error

启用http服务

func (*Serverx) StarupCheck

func (s *Serverx) StarupCheck() *Serverx

Jump to

Keyboard shortcuts

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