sql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct {
	Dsn               string `json:"dsn" desc:"https://github.com/go-sql-driver/mysql#dsn-data-source-name" validate:"required"`
	MaxOpenConns      int    `json:"max_open_conns" desc:"max count of opening connections" validate:"gte=0"`
	MaxIdleConns      int    `json:"max_idle_conns" desc:"max count of idle connections" validate:"gte=0"`
	ConnMaxLifeSecond int    `json:"conn_max_life_second" desc:"max life time for connection" validate:"gte=0"`
	// contains filtered or unexported fields
}

func (MySQL) Build

func (m MySQL) Build() (pipeline.Handler, error)

func (MySQL) Handle

func (m MySQL) Handle(ctx context.Context, reqRes *pipeline.HandleRes) (respRes *pipeline.HandleRes, err error)

Jump to

Keyboard shortcuts

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