app

package
v0.0.0-...-a28a944 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TIMEOUT = 30 * time.Second

Variables

This section is empty.

Functions

func Start

func Start(port string, handler http.Handler, options ...ServerOption) error

Types

type ServerOption

type ServerOption func(server *http.Server)

func WithReadTimeout

func WithReadTimeout(t time.Duration) ServerOption

WithReadTimeout configure http.Server parameter ReadTimeout

func WithWriteTimeout

func WithWriteTimeout(t time.Duration) ServerOption

WithWriteTimeout configure http.Server parameter WriteTimeout

Jump to

Keyboard shortcuts

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