mysql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package mysql provides MySQL-specific implementations of interface store.Router

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(cfg *Config) (store.Router, error)

NewRouter creates and configures a MySQL session and returns a mysqlRouter with it.

Types

type Config

type Config struct {
	User            string
	Pwd             string
	Host            string
	Port            int
	Database        string
	Charset         string
	ParseTime       bool
	Loc             string
	MaxIdleConns    int
	MaxOpenConns    int
	MaxConnLifetime time.Duration
	LogLevel        int
}

Config holds configs for MySQL session.

Directories

Path Synopsis
Package timer provides an implementation to interface store.TimerStore for MySQL operations of RESTful resource Timer.
Package timer provides an implementation to interface store.TimerStore for MySQL operations of RESTful resource Timer.

Jump to

Keyboard shortcuts

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