Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultBeeWorkDir() string
- func DefaultLogsDir() string
- func DefaultWorkerBaseDir() string
- func GetLang(path string) string
- type AuthConfig
- type BeeConfig
- type ClaudeConfig
- type Config
- type DatabaseConfig
- type DingTalkConfig
- type FeederConfig
- type FeishuConfig
- type MCPConfig
- type MediaConfig
- type PlatformsConfig
- type ServerConfig
- type TelegramConfig
- type WeComConfig
- type WeixinConfig
Constants ¶
View Source
const ( MCPBeeBasePath = "/mcp/bee" MCPWorkerBasePath = "/mcp/worker" )
MCP endpoint path prefixes.
Variables ¶
View Source
var ConfigTemplate string
Functions ¶
func DefaultBeeWorkDir ¶
func DefaultBeeWorkDir() string
DefaultBeeWorkDir returns the hardcoded bee working directory: ~/.openbee/bee
func DefaultLogsDir ¶ added in v0.0.4
func DefaultLogsDir() string
DefaultLogsDir returns the execution log directory: ~/.openbee/logs
func DefaultWorkerBaseDir ¶
func DefaultWorkerBaseDir() string
DefaultWorkerBaseDir returns the hardcoded worker base directory: ~/.openbee/worker
Types ¶
type AuthConfig ¶ added in v0.0.8
type AuthConfig struct {
Username string `yaml:"username"` // login username; default "admin"
Password string `yaml:"password"` // login password; empty = auto-generated on startup
JWTSecret string `yaml:"jwt_secret"` // HMAC-SHA256 secret; empty = auto-generated on startup
AccessTokenTTL time.Duration `yaml:"access_token_ttl"` // access token lifetime; default 2h
RefreshTokenTTL time.Duration `yaml:"refresh_token_ttl"` // refresh token lifetime; default 7d
}
type BeeConfig ¶
type BeeConfig struct {
MessageDebounce time.Duration `yaml:"message_debounce"`
Claude ClaudeConfig `yaml:"claude"`
Feeder FeederConfig `yaml:"feeder"`
Platforms PlatformsConfig `yaml:"platforms"`
MCP MCPConfig `yaml:"mcp"`
Media MediaConfig `yaml:"media"`
// Derived fields — not in YAML, computed by Load()
MCPBaseURL string `yaml:"-"` // http://host:port (no path suffix)
}
type ClaudeConfig ¶
type Config ¶
type Config struct {
Language string `yaml:"language"`
Server ServerConfig `yaml:"server"`
Database DatabaseConfig `yaml:"database"`
Bee BeeConfig `yaml:"bee"`
}
type DatabaseConfig ¶
type DatabaseConfig struct {
Path string `yaml:"path"`
}
type DingTalkConfig ¶
type FeederConfig ¶
type FeishuConfig ¶
type MediaConfig ¶
type PlatformsConfig ¶
type PlatformsConfig struct {
Feishu FeishuConfig `yaml:"feishu"`
DingTalk DingTalkConfig `yaml:"dingtalk"`
WeCom WeComConfig `yaml:"wecom"`
Telegram TelegramConfig `yaml:"telegram"`
Weixin WeixinConfig `yaml:"weixin"`
}
type ServerConfig ¶
type ServerConfig struct {
Port int `yaml:"port"`
Host string `yaml:"host"`
Debug bool `yaml:"debug"`
Auth AuthConfig `yaml:"auth"`
}
type TelegramConfig ¶ added in v0.0.5
type WeComConfig ¶
type WeixinConfig ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.