package
Version:
v0.0.0-...-db5681a
Opens a new window with list of versions in this module.
Published: Mar 11, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BaseHandler struct {
}
基础处理者
func (*BaseHandler) Handle ¶
Handle 处理给定的 handleID
type ConcreteHandler struct {
}
具体处理者
func (*ConcreteHandler) Handle ¶
具体处理者的处理方法
type Handler interface {
SetNext(handler Handler)
Handle(handleID int) int
}
Handler 定义了一个处理程序来处理给定的 handleID
Source Files
¶
Click to show internal directories.
Click to hide internal directories.