httpserver

package
v0.0.0-...-bd7f934 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*serverImpl)

option -.

func Port

func Port(port string) Option

Port -.

func ReadTimeout

func ReadTimeout(timeout time.Duration) Option

ReadTimeout -.

func ShutdownTimeout

func ShutdownTimeout(timeout time.Duration) Option

ShutdownTimeout -.

func WriteTimeout

func WriteTimeout(timeout time.Duration) Option

WriteTimeout -.

type Server

type Server interface {
	Start() error
	Shutdown() error
	GetAddress() string
}

Server -.

func New

func New(handler *gin.Engine, opts ...Option) Server

New -.

Jump to

Keyboard shortcuts

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