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
}
func NewRouter ¶
func NewRouter(rs RouterSettings) *Router
type RouterSettings ¶
type RouterSettings struct { // Host like 0.0.0.0:8080 Host 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.