Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultGoMySQLServerFactory ¶
type DefaultGoMySQLServerFactory struct{}
func NewDefaultGoMySQLServerFactory ¶
func NewDefaultGoMySQLServerFactory() *DefaultGoMySQLServerFactory
func (*DefaultGoMySQLServerFactory) Create ¶
func (f *DefaultGoMySQLServerFactory) Create(options ...GoMySQLServerOption) (*server.Server, error)
type GoMySQLServerFactory ¶
type GoMySQLServerFactory interface {
Create(options ...GoMySQLServerOption) (*server.Server, error)
}
type GoMySQLServerOption ¶
type GoMySQLServerOption func(o *ServerOptions)
GoMySQLServerOption are functional options for the GoMySQLServerFactory implementations.
func WithConfig ¶
func WithConfig(config *config.GoMySQLServerConfig) GoMySQLServerOption
WithConfig is used to specify the config.GoMySQLServerConfig to use as server config.
func WithLogOutput ¶
func WithLogOutput(output io.Writer) GoMySQLServerOption
WithLogOutput is used to specify the io.Writer to use as server logger output.
func WithTracer ¶
func WithTracer(tracer trace.Tracer) GoMySQLServerOption
WithTracer is used to specify the trace.Tracer to use as server tracer.
type ServerOptions ¶
type ServerOptions struct {
Config *config.GoMySQLServerConfig
LogOutput io.Writer
Tracer trace.Tracer
}
ServerOptions are options for the GoMySQLServerFactory implementations.
func DefaultGoMySQLServerOptions ¶
func DefaultGoMySQLServerOptions() ServerOptions
DefaultGoMySQLServerOptions are the default options used in the DefaultGoMySQLServerFactory.
Click to show internal directories.
Click to hide internal directories.