graceful

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graceful

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

func New

func New(r *gin.Engine, opts ...Option) *Graceful

func (*Graceful) Run

func (g *Graceful) Run()

type Option

type Option func(*Graceful)

func WithAddr

func WithAddr(addr string) Option

func WithCleanup

func WithCleanup(cleanup ...cleanup) Option

func WithLogger

func WithLogger(l log.Logger) Option

func WithReadTimeout

func WithReadTimeout(timeout time.Duration) Option

func WithServer

func WithServer(srv *http.Server) Option

func WithStopTimeout added in v0.4.6

func WithStopTimeout(timeout time.Duration) Option

func WithWriteTimeout

func WithWriteTimeout(timeout time.Duration) Option

Jump to

Keyboard shortcuts

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