Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("server", fx.Provide( New, ), fx.Provide( fx.Private, parseConfig, ), fx.Invoke(startServer), fx.Decorate(wrapLogger), )
Module is an example of an Fx module's skeleton. --8<-- [start:start]
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addr string `yaml:"addr"`
}
Config is the configuration of the server. --8<-- [start:config]
Click to show internal directories.
Click to hide internal directories.