mysql

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DriverName = "mysql"

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	DSN          string                 `yaml:"dsn"`
	ConnPool     *internal.ConnPoolConf `yaml:"connPool"`
	TLS          map[string]TLSConf     `yaml:"tls"`
	ServerPubKey map[string]string      `yaml:"serverPubKey"`
}

func (*Conf) Key

func (c *Conf) Key() string

type Store

type Store struct {
	internal.DBStorage
}

func NewStore

func NewStore(ctx context.Context, conf *Conf) (*Store, error)

func (*Store) Driver

func (s *Store) Driver() string

type TLSConf

type TLSConf struct {
	CACert string `yaml:"caCert"`
	Cert   string `yaml:"cert"`
	Key    string `yaml:"key"`
}

Jump to

Keyboard shortcuts

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