Documentation
¶
Overview ¶
Package loop 封装 loop catalog 的 HTTP handlers。
L2 | 父级: internal/handler(L1 见 AGENTS.md)
成员清单:
- handlers.go:Handlers 及 loop 目录路由。
[PROTOCOL]: 变更时更新此头部,然后检查父级入口 AGENTS.md(L1)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers 封装 loop catalog HTTP handlers。
func New ¶
func New(api *handlershared.API, loops *loopsvc.Service) *Handlers
New 创建 loop catalog handlers。
func (*Handlers) HandleGetLoopDetail ¶
func (h *Handlers) HandleGetLoopDetail(writer http.ResponseWriter, request *http.Request)
HandleGetLoopDetail 返回单个 loop 详情。
func (*Handlers) HandleListLoops ¶
func (h *Handlers) HandleListLoops(writer http.ResponseWriter, request *http.Request)
HandleListLoops 返回内置 loops 列表。
Click to show internal directories.
Click to hide internal directories.