cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 17 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