Documentation
¶
Index ¶
- type Graceful
- type Option
- func WithAddr(addr string) Option
- func WithCleanup(cleanup ...cleanup) Option
- func WithLogger(l log.Logger) Option
- func WithReadTimeout(timeout time.Duration) Option
- func WithServer(srv *http.Server) Option
- func WithStopTimeout(timeout time.Duration) Option
- func WithWriteTimeout(timeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Graceful)
func WithCleanup ¶
func WithCleanup(cleanup ...cleanup) Option
func WithLogger ¶
func WithReadTimeout ¶
func WithServer ¶
func WithStopTimeout ¶ added in v0.4.6
func WithWriteTimeout ¶
Click to show internal directories.
Click to hide internal directories.