Documentation
¶
Index ¶
Constants ¶
View Source
const ModuleName = "gomysqlserver"
ModuleName is the module name.
Variables ¶
View Source
var FxGoMySQLServerModule = fx.Module( ModuleName, fx.Provide( fx.Annotate( server.NewDefaultGoMySQLServerFactory, fx.As(new(server.GoMySQLServerFactory)), ), fx.Annotate( NewFxGoMySQLServerModuleInfo, fx.As(new(interface{})), fx.ResultTags(`group:"core-module-infos"`), ), NewFxGoMySQLServerConfig, NewFxGoMySQLServer, ), )
FxGoMySQLServerModule is the Fx go-mysql-server module.
Functions ¶
func NewFxGoMySQLServer ¶
func NewFxGoMySQLServer(p FxGoMySQLServerParam) (*sqle.Server, error)
NewFxGoMySQLServer returns a new sqle.Server instance.
func NewFxGoMySQLServerConfig ¶
func NewFxGoMySQLServerConfig(p FxGoMySQLServerConfigParam) (*config.GoMySQLServerConfig, error)
NewFxGoMySQLServerConfig returns a new config.GoMySQLServerConfig instance.
Types ¶
type FxGoMySQLServerConfigParam ¶
type FxGoMySQLServerConfigParam struct { fx.In Config *yokaiconfig.Config }
FxGoMySQLServerConfigParam allows injection of the required dependencies in [NewGoMySQLServerConfig].
type FxGoMySQLServerModuleInfo ¶
type FxGoMySQLServerModuleInfo struct {
// contains filtered or unexported fields
}
FxGoMySQLServerModuleInfo is a module info collector for gomysqlserver.
func NewFxGoMySQLServerModuleInfo ¶
func NewFxGoMySQLServerModuleInfo(config *config.GoMySQLServerConfig, server *server.Server) *FxGoMySQLServerModuleInfo
NewFxGoMySQLServerModuleInfo returns a new FxGoMySQLServerModuleInfo.
func (*FxGoMySQLServerModuleInfo) Data ¶
func (i *FxGoMySQLServerModuleInfo) Data() map[string]interface{}
Data return the data of the module info.
func (*FxGoMySQLServerModuleInfo) Name ¶
func (i *FxGoMySQLServerModuleInfo) Name() string
Name return the name of the module info.
type FxGoMySQLServerParam ¶
type FxGoMySQLServerParam struct { fx.In LifeCycle fx.Lifecycle ServerFactory server.GoMySQLServerFactory ServerConfig *config.GoMySQLServerConfig Config *yokaiconfig.Config Logger *log.Logger TracerProvider oteltrace.TracerProvider }
FxGoMySQLServerParam allows injection of the required dependencies in NewFxGoMySQLServer.
Click to show internal directories.
Click to hide internal directories.