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. region start region provide region invoke region decorate region private
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addr string `yaml:"addr"`
}
Config is the configuration of the server. region config
Click to show internal directories.
Click to hide internal directories.