Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SettingsService

type SettingsService interface {
	GetSettings() (*model.Settings, error)
	SaveSettings(s *model.Settings) error
	SaveLanguage(language string) error
	SaveTitleGenerationAgent(config *model.AgentRoleConfig) error
	SaveGroupReplyAgent(config *model.AgentRoleConfig) error
	SaveIMSessionAgent(agent *model.IMSessionAgentConfig) error
	SaveACPEnvVars(agentID string, entries []model.ACPEnvVarEntry) (version int64, changed bool, err error)
	StageACPEnvVars(agentID string, entries []model.ACPEnvVarEntry) (int64, error)
	RestoreACPEnvState(agentID string, expectedVersion int64, entries []model.ACPEnvVarEntry, version int64) error
	SaveAgentPrefs(agentID string, prefs model.AgentPrefs) error
	ClearAgentSettings(agentID string) error
	GetACPEnvVars(agentType string) map[string]string
	GetACPEnvVersion(agentType string) int64
	GetLarkConfig() (appID, appSecret string)
	GetLarkIMSenderIDs() (adminSenderID, sophiaSenderID string)
	GetIMConfig() (workspaceID string, agent *model.IMSessionAgentConfig)
	GetGroupReplyAgent() *model.AgentRoleConfig

	// WeChat admin whitelist — populated via scan-to-login + first-contact
	// approval (see doc_wechat_integration.md §5.1). WeChat does not have a
	// bot identity concept comparable to Lark's sophia_sender_id, so there
	// is no matching "GetWeChatBotID" method — group chats are unsupported
	// in WeChat anyway (iLink bot_type=3 is P2P only).
	GetWeChatAdminIDs() []string
	AddWeChatAdminID(id string) error
	RemoveWeChatAdminID(id string) error
}

func NewSettingsService

func NewSettingsService() (SettingsService, error)

Jump to

Keyboard shortcuts

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