Documentation ¶
Index ¶
- type Getter
- type MetaVector
- type MySQL
- type Option
- func WithCharset(cs string) Option
- func WithConnectionLifeTimeLimit(dur string) Option
- func WithDB(db string) Option
- func WithDialer(der func(ctx context.Context, addr, port string) (net.Conn, error)) Option
- func WithHost(host string) Option
- func WithInitialPingDuration(dur string) Option
- func WithInitialPingTimeLimit(lim string) Option
- func WithMaxIdleConns(conns int) Option
- func WithMaxOpenConns(conns int) Option
- func WithName(name string) Option
- func WithPass(pass string) Option
- func WithPort(port int) Option
- func WithTLSConfig(cfg *tls.Config) Option
- func WithTimezone(tz string) Option
- func WithUser(user string) Option
- type Setter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaVector ¶
type MySQL ¶
type Option ¶
type Option func(*mySQLClient) error
func WithCharset ¶
func WithDialer ¶
func WithInitialPingDuration ¶
func WithMaxIdleConns ¶
func WithMaxOpenConns ¶
func WithTLSConfig ¶
func WithTimezone ¶
type Setter ¶
type Setter interface { SetMeta(ctx context.Context, meta MetaVector) error SetMetas(ctx context.Context, metas ...MetaVector) error DeleteMeta(ctx context.Context, uuid string) error DeleteMetas(ctx context.Context, uuids ...string) error SetIPs(ctx context.Context, uuid string, ips ...string) error RemoveIPs(ctx context.Context, ips ...string) error }
Click to show internal directories.
Click to hide internal directories.