models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConnConfig

type DbConnConfig struct {
	Driver             string
	Host               string
	Port               int32
	User               string
	Password           string
	Timeout            time.Duration
	DBName             string
	DSN                string
	InstanceConnection string
}

DbConnConfig holds all info necessary to make a DSN connection string for a mysql VIP

func (*DbConnConfig) MakeDSN

func (d *DbConnConfig) MakeDSN()

MakeDSN makes a mysql DSN connection string in the DbConnConfig struct

func (*DbConnConfig) MakeInstanceDSN

func (d *DbConnConfig) MakeInstanceDSN()

func (*DbConnConfig) String

func (d *DbConnConfig) String() string

Jump to

Keyboard shortcuts

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