http_server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port           int           `json:"port" yaml:"Port"`
	GinMode        string        `json:"ginMode" yaml:"GinMode"`
	ReadTimeout    time.Duration `json:"readTimeout" yaml:"ReadTimeout"`
	WriteTimeout   time.Duration `json:"writeTimeout" yaml:"WriteTimeout"`
	IdleTimeout    time.Duration `json:"idleTimeout" yaml:"IdleTimeout"`
	MaxHeaderBytes int           `json:"maxHeaderBytes" yaml:"MaxHeaderBytes"`
	EnableCORS     bool          `json:"enableCors" yaml:"EnableCors"`
	Debug          debug.Config  `json:"debug" yaml:"Debug"`
}

GlobalConfig represents global gateway settings

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(cfg *Config, service *service.Service, env string) *HTTPServer

func (*HTTPServer) Name

func (a *HTTPServer) Name() string

func (*HTTPServer) Run

func (a *HTTPServer) Run(ctx context.Context) error

func (*HTTPServer) Shutdown

func (a *HTTPServer) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

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