Documentation ¶
Index ¶
- type HTTPServerOptions
- type Option
- func WithHTTPServerAppName(appName string) Option
- func WithHTTPServerBodyLimit(bodyLimit int) Option
- func WithHTTPServerCaseSensitive(isCaseSensitive bool) Option
- func WithHTTPServerHeader(header string) Option
- func WithHTTPServerReadTimeout(readTimeout time.Duration) Option
- func WithHTTPServerStrictRouting(isStrictRouting bool) Option
- func WithHTTPServerWriteTimeout(writeTimeout time.Duration) Option
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServerOptions ¶
type HTTPServerOptions struct { ServerHeader string AppName string CaseSensitive bool StrictRouting bool ReadTimeout time.Duration WriteTimeout time.Duration BodyLimit int }
HTTPServerOptions defines the http server configuration
type Option ¶
type Option func(*HTTPServerOptions)
Option is the func interface to assign options
func WithHTTPServerAppName ¶
WithHTTPServerAppName defines the HTTPServer App Name
func WithHTTPServerBodyLimit ¶
WithHTTPServerBodyLimit defines the HTTPServer Body Limit
func WithHTTPServerCaseSensitive ¶
WithHTTPServerCaseSensitive defines the HTTPServer Case Sensitive
func WithHTTPServerHeader ¶
WithHTTPServerHeader defines the HTTPServer Header
func WithHTTPServerReadTimeout ¶
WithHTTPServerReadTimeout defines the HTTPServer Read Timeout
func WithHTTPServerStrictRouting ¶
WithHTTPServerStrictRouting defines the HTTPServer Strict Routing
func WithHTTPServerWriteTimeout ¶
WithHTTPServerWriteTimeout defines the HTTPServer Write Timeout
type Server ¶
type Server struct { Options *HTTPServerOptions App *fiber.App }
Click to show internal directories.
Click to hide internal directories.