backend

package module
v0.0.0-...-481d40d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(e *echo.Echo, dir string, opts ...BridgeOption) error

Types

type BridgeOption

type BridgeOption func(*do.Injector)

BridgeOption 桥接可选配置

func WithEmailSender

func WithEmailSender(sender domain.EmailSender) BridgeOption

WithEmailSender 注入自定义邮件发送实现,覆盖默认 SMTP

func WithInternalHook

func WithInternalHook(hook domain.InternalHook) BridgeOption

WithInternalHook 注入内部 handler 回调(用于 taskflow 回调中与 task 系统耦合的逻辑)

func WithModelHook

func WithModelHook(hook domain.ModelHook) BridgeOption

WithModelHook 注入模型列表扩展回调

func WithPrivilegeChecker

func WithPrivilegeChecker(checker domain.PrivilegeChecker) BridgeOption

WithPrivilegeChecker 注入特权用户检查器

func WithProjectHook

func WithProjectHook(hook domain.ProjectHook) BridgeOption

WithProjectHook 注入项目模块回调

func WithPublicHost

func WithPublicHost() BridgeOption

WithPublicHost 启用公共主机支持,注册 PublicHostRepo 和 PublicHostUsecase

func WithSiteResolver

func WithSiteResolver(resolver domain.SiteResolver) BridgeOption

WithSiteResolver 注入站点解析器

func WithTaskHook

func WithTaskHook(hook domain.TaskHook) BridgeOption

WithTaskHook 注入任务模块回调

func WithTasker

func WithTasker(t *tasker.Tasker[*domain.TaskSession]) BridgeOption

WithTasker 注入外部 Tasker 实例

Directories

Path Synopsis
biz
git
cmd
server command
db
ent
Package errcode 提供统一的错误码定义和国际化支持
Package errcode 提供统一的错误码定义和国际化支持
pkg
cvt
git/gitea
Package gitea 提供 Gitea 客户端功能
Package gitea 提供 Gitea 客户端功能
git/gitee
Package gitee 提供 Gitee 客户端功能
Package gitee 提供 Gitee 客户端功能
git/github
Package github 提供 GitHub 客户端功能(PAT 模式,不含 GitHub App)
Package github 提供 GitHub 客户端功能(PAT 模式,不含 GitHub App)
git/gitlab
Package gitlab 提供 GitLab 客户端功能,支持多个 GitLab 实例
Package gitlab 提供 GitLab 客户端功能,支持多个 GitLab 实例
lifecycle
Package lifecycle 提供泛型化的生命周期管理
Package lifecycle 提供泛型化的生命周期管理
llm
Package llm 提供精简版 LLM 健康检查
Package llm 提供精简版 LLM 健康检查
loki
Package loki 提供 Loki 日志查询客户端
Package loki 提供 Loki 日志查询客户端
nls
store
Package store 提供数据库存储和迁移功能
Package store 提供数据库存储和迁移功能
taskflow
Package taskflow 提供 taskflow 服务的客户端实现
Package taskflow 提供 taskflow 服务的客户端实现
ws

Jump to

Keyboard shortcuts

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