Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "0.3.3"
Version of current dawn package
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct{}
Module is an empty struct implements Moduler interface and can be embedded into custom struct as a Moduler
func (Module) RegisterRoutes ¶
RegisterRoutes add routes to fiber router
type Moduler ¶
type Moduler interface {
// Stringer indicates module's name
fmt.Stringer
// Init does initialization works and should return
// a cleanup function.
Init() Cleanup
// Boot boots the module.
Boot()
// RegisterRoutes add routes to fiber router
RegisterRoutes(fiber.Router)
}
Moduler is the interface that wraps the module's method.
type Sloop ¶
type Sloop struct {
// contains filtered or unexported fields
}
Sloop denotes Dawn application
func Default ¶
Default returns an Sloop instance with the - RequestID - Logger - Recovery - Pprof middleware already attached in default fiber app.
func (*Sloop) AddModulers ¶
AddModulers appends more Modulers
Directories
¶
| Path | Synopsis |
|---|---|
|
_examples
|
|
|
application
command
|
|
|
config
command
|
|
|
custom_app
command
|
|
|
log
command
|
|
|
quickstart
command
|
|
|
cmd
|
|
|
dawn
command
|
|
|
db
|
|
Click to show internal directories.
Click to hide internal directories.