Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ConfigDefault = Config{ Listen: ":3000", Proxies: []string{}, }
Functions ¶
func AsApiHandler ¶
func AsRootHandler ¶
func Run ¶
func Run(params RunServerParams) error
Types ¶
type ApiHanlder ¶
type ApiHanlder interface {
Register(app fiber.Router)
}
type Params ¶
type Params struct { fx.In Config Config Logger *zap.Logger ApiHandlers []ApiHanlder `group:"api-routes"` RootHandlers []RootHanlder `group:"root-routes"` LC fx.Lifecycle }
type RootHanlder ¶
type RootHanlder interface {
Register(app *fiber.App)
}
type RunServerParams ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.