Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptchaResult ¶ added in v0.1.5
CaptchaResult contains the generated captcha image and its text
type HTTPServer ¶
HTTPServer 定义 HTTP 服务器接口
type ImageGenerator ¶
type ImageGenerator interface {
GenerateCaptcha(width, height int, text string) (*CaptchaResult, error)
}
ImageGenerator 定义图片生成器接口
type OutputWriter ¶
type OutputWriter interface { Write(content string) WriteError(err string) WriteInfo(content string) WriteResponse(content string) }
OutputWriter 定义输出写入器接口
type Router ¶
type Router interface {
ServeHTTP(http.ResponseWriter, *http.Request)
}
Router 定义路由器接口
type TraceManager ¶
TraceManager 定义跟踪管理的核心接口
type TraceReader ¶
TraceReader 定义读取跟踪数据的接口
type TraceWriter ¶
TraceWriter 定义写入跟踪数据的接口
Click to show internal directories.
Click to hide internal directories.