Documentation
¶
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.