command

package
v0.0.0-...-d3dc549 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 30 Imported by: 0

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

func FullMain

func FullMain(ctx context.Context, started chan bool, applicationContext *base.ApplicationContext)

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 None

type None string

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL