Documentation
¶
Index ¶
Constants ¶
Variables ¶
View Source
var ConfigDefault = Config{
Listen: ":4000",
}
Functions ¶
func AsApiHandler ¶
func AsRootHandler ¶
func Run ¶
func Run(params RunServerParams) error
Types ¶
type ApiHanlder ¶
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 RunServerParams ¶
Click to show internal directories.
Click to hide internal directories.