dragons

package
v0.0.0-...-b34c890 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = New()

Functions

func Init

func Init(options ...Option)

func SQLClient

func SQLClient(ctx context.Context, name string) *sql.Group

func Scan

func Scan(v interface{}) error

func Shutdown

func Shutdown() error

Types

type Dragons

type Dragons struct {
	Name       string
	ConfigPath string
	// contains filtered or unexported fields
}

func New

func New() *Dragons

func (*Dragons) Init

func (d *Dragons) Init(options ...Option)

func (*Dragons) InitSqlClient

func (d *Dragons) InitSqlClient(sqlList []sql.SQLGroupConfig) error

func (*Dragons) SQLClient

func (d *Dragons) SQLClient(name string) *sql.Group

func (*Dragons) Scan

func (d *Dragons) Scan(v interface{}) error

func (*Dragons) Shutdown

func (d *Dragons) Shutdown() error

type Option

type Option func(*Dragons)

func ConfigPath

func ConfigPath(path string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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