pkg

package
v0.0.0-...-8d22ec3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apache

type Apache struct {
	Application *Application
	// contains filtered or unexported fields
}

Apache类

func NewApacheServer

func NewApacheServer() *Apache

创建Apache服务器

func (*Apache) CheckRateLimiting

func (n *Apache) CheckRateLimiting(url string) bool

检查频率限制

func (*Apache) HandleRequest

func (n *Apache) HandleRequest(url, method string) (int, string)

处理请求

type Application

type Application struct {
}

定义真实主体类

func (*Application) HandleRequest

func (a *Application) HandleRequest(url, method string) (int, string)

处理请求

type Server

type Server interface {
	HandleRequest(string, string) (int, string)
}

定义主体服务器接口

Jump to

Keyboard shortcuts

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