http

package
v2.11.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

func NewEngine() (*gin.Engine, error)

Types

type Server

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

func NewServer

func NewServer(config ServerConfig) *Server

func (*Server) GracefulShutdown

func (srv *Server) GracefulShutdown(ctx context.Context)

func (*Server) Run

func (srv *Server) Run()

type ServerConfig

type ServerConfig struct {
	Address             string
	GracefulShutdownTtl time.Duration
}

Directories

Path Synopsis
controller

Jump to

Keyboard shortcuts

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