server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 13 Imported by: 0

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

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

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.

Jump to

Keyboard shortcuts

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