Documentation
¶
Index ¶
Constants ¶
View Source
const CurrentVersion = 1
Variables ¶
This section is empty.
Functions ¶
func NormalizeProfileURL ¶
func ValidateMCPToken ¶ added in v0.2.0
Types ¶
type Config ¶
type Config struct {
Version int `toml:"version"`
CurrentProfile string `toml:"current_profile"`
Behavior Behavior `toml:"behavior"`
Profiles map[string]Profile `toml:"profiles"`
MCP *MCP `toml:"mcp,omitempty"`
}
func (Config) MCPSettings ¶ added in v0.2.0
type MCP ¶ added in v0.2.0
type MCP struct {
ListenHost string `toml:"listen_host" json:"listenHost"`
Port int `toml:"port" json:"port"`
AllowLAN bool `toml:"allow_lan" json:"allowLAN"`
TLSCert string `toml:"tls_cert,omitempty" json:"tlsCert"`
TLSKey string `toml:"tls_key,omitempty" json:"tlsKey"`
Token string `toml:"token,omitempty" json:"token,omitempty"`
}
MCP 保存共享设置与访问 Token;是否运行由宿主显式控制。
func DefaultMCP ¶ added in v0.2.0
func DefaultMCP() MCP
func (MCP) WithoutToken ¶ added in v0.2.0
WithoutToken 用于实例描述等不应保存或返回访问凭据的场景。
Click to show internal directories.
Click to hide internal directories.