cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExeDir

func ExeDir() string

func Execute

func Execute() error

Execute executes the root command.

func WorkDir

func WorkDir() string

Types

type AppConfig

type AppConfig struct {
	// 形如:
	// plugins:
	//   goose:
	//     - id: goose-1
	//       dsn: "postgres://..."
	//       flush_interval: "2s"
	//
	// Plugins maps plugin type -> list of instance configs.
	Plugins map[string][]PluginInstanceConfig `yaml:"plugins"`
}

AppConfig 顶层配置结构 AppConfig is the top-level configuration structure.

type PluginInstanceConfig

type PluginInstanceConfig struct {
	ID     string         `yaml:"id"`      // 实例 ID / instance ID
	Config map[string]any `yaml:",inline"` // 其他字段合并进 map / all other fields go into this map
}

PluginInstanceConfig 表示 YAML 中的一个实例配置 PluginInstanceConfig describes one plugin instance in YAML.

Jump to

Keyboard shortcuts

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