Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

func OpenSocks5Sql

func OpenSocks5Sql(dsn string) (*sql.DB, error)

Types

type Config

type Config struct {
	Databases   map[string]DatabaseConfig `yaml:"databases"`
	ServiceName string                    `yaml:"servicename"`
}

func LoadConfig

func LoadConfig() (Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	Connection       string `yaml:"connection"`
	Dsn              msdsn.Config
	UsePasswordLogin bool
}

func (DatabaseConfig) Open

func (dbcfg DatabaseConfig) Open(ctx context.Context, logger logrus.FieldLogger) (*sql.DB, error)

Jump to

Keyboard shortcuts

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