targets

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBEngine

type DBEngine string
const (
	MySQL    DBEngine = "mysql"
	Postgres DBEngine = "postgres"
	SQLite   DBEngine = "sqlite"
)

func (DBEngine) IsValid

func (dbe DBEngine) IsValid() bool

type Target

type Target struct {
	TargetID string   `mapstructure:"targetID" json:"targetID" yaml:"targetID"`
	Type     DBEngine `mapstructure:"type" json:"type" yaml:"type"`
	// one of
	// DSN
	DSN string `mapstructure:"dsn"  json:"dsn" yaml:"dsn"`
}

type Targets

type Targets struct {
	IncludeTargetID bool     `mapstructure:"includeTargetID" json:"includeTargetID" yaml:"includeTargetID"'`
	Targets         []Target `mapstructure:"targets" json:"targets" yaml:"targets"`
}

func FromFile

func FromFile(targetsFile string) (*Targets, error)

Jump to

Keyboard shortcuts

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