Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
type RouterSettings ¶
type RouterSettings struct {
// Addr like 0.0.0.0:8080
Addr string
// BasePath for serving
BasePath string
// ShutdownTimeout using in shutdown server default is 5 second.
ShutdownTimeout time.Duration
}
func (RouterSettings) SetDefaults ¶
func (rs RouterSettings) SetDefaults() RouterSettings
Click to show internal directories.
Click to hide internal directories.