Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppMain ¶
func AppMain(ctx context.Context, appConfig *ApplicationConfig, applicationContext *base.ApplicationContext) error
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct {
App *goxBaseConfig.App `yaml:"app"`
MetricConfig *goxBaseMetrics.Config `yaml:"metric"`
HttpConfig *goxHttp.Config `yaml:"server_config"`
MessagingConfig *goxMessaging.Configuration `yaml:"messaging_config"`
RequestResponseSecurityConfig *goxHttpApi.RequestResponseSecurityConfig `yaml:"gox_http_request_response_security_config"`
CadenceConfig *cadenceConfig.Config `yaml:"cadence_config"`
OrdersMysqlConfig *ordersDataStore.MySqlConfig `yaml:"orders_mysql_config"`
OrdersRoMysqlConfig *orderRoDataStore.MySqlConfig `yaml:"orders_ro_mysql_config"`
}
func (*ApplicationConfig) SetDefaults ¶
func (a *ApplicationConfig) SetDefaults()
type ServerImpl ¶
type ServerImpl struct {
fx.In
common.Server
gox.CrossFunction
App *goxBaseConfig.App
ServerSignal *ServerSignal
RequestResponseSecurityConfig *goxHttpApi.RequestResponseSecurityConfig
MetricHandler *stats.MetricHandler
PostHandler handler.PostHandler
}
func (*ServerImpl) ServeHTTP ¶
func (s *ServerImpl) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ServerSignal ¶
type ServerSignal struct {
StartedCh chan error
}
Click to show internal directories.
Click to hide internal directories.