db

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagSet

func FlagSet(name string) *pflag.FlagSet

Types

type Config

type Config struct {
	Debug   bool       `json:"debug" yaml:"debug"`
	Sock    string     `json:"sock" yaml:"sock"`
	Host    string     `json:"host" yaml:"host"`
	Port    int        `json:"port" yaml:"port"`
	Name    string     `json:"name" yaml:"name"`
	User    string     `json:"user" yaml:"user"`
	Pass    string     `json:"pass" yaml:"pass"`
	Charset string     `json:"charset" yaml:"charset"`
	Conn    ConnConfig `json:"conn" yaml:"conn"`
}

type ConnConfig

type ConnConfig struct {
	Idle     int `json:"idle" yaml:"idle"`
	Open     int `json:"open" yaml:"open"`
	Lifetime int `json:"lifetime" yaml:"lifetime"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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