models

package
v0.0.0-...-611965f Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Version string `yaml:"version"` // 版本号,用于升级时判断
	AIC     struct {
		BaseURL string `yaml:"base_url"` // AIC 服务器地址
		Token   string `yaml:"token"`    // 认证 Token
	} `yaml:"aic"`
	Skills struct {
		GlobalDir   string `yaml:"global_dir"`   // 全局skills存储目录
		DefaultMode string `yaml:"default_mode"` // 默认安装模式: copy 或 symlink
	} `yaml:"skills"`
	Log struct {
		Level      string `yaml:"level"`
		MaxSize    int    `yaml:"maxSize"`
		MaxBackups int    `yaml:"maxBackups"`
		MaxAge     int    `yaml:"maxAge"`
		Compress   bool   `yaml:"compress"`
	} `yaml:"log"`
}

type LinksConfig

type LinksConfig struct {
	Links []SkillLink `json:"links"`
}

LinksConfig 存储所有软连接映射

type SkillLink struct {
	Name       string `json:"name"`        // skill 名称
	GlobalPath string `json:"global_path"` // 全局目录路径
	LinkPath   string `json:"link_path"`   // 软连接路径
	AddedAt    string `json:"added_at"`    // 添加时间
}

SkillLink 表示一个 skill 的软连接映射

Jump to

Keyboard shortcuts

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