mysql

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 2 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 {
	// Name of the datasource
	Name string `json:"name" yaml:"name" hcl:"name,label"`
	// DSN connection data
	DSN string `json:"dsn" yaml:"dsn" hcl:"dsn"`
	// Timeout value
	Timeout int `json:"timeout" yaml:"timeout" hcl:"timeout,optional"`
}

Mysql datasource config

func (Mysql) Validate

func (cfg Mysql) Validate() error

Validate config

Jump to

Keyboard shortcuts

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