MCPcopy
hub / github.com/aceld/zinx / BaseRouter

Struct BaseRouter

znet/router.go:13–13  ·  view source on GitHub ↗

BaseRouter is used as the base class when implementing a router. Depending on the needs, the methods of this base class can be overridden. (实现router时,先嵌入这个基类,然后根据需要对这个基类的方法进行重写)

Source from the content-addressed store, hash-verified

11// Depending on the needs, the methods of this base class can be overridden.
12// (实现router时,先嵌入这个基类,然后根据需要对这个基类的方法进行重写)
13type BaseRouter struct{}
14
15// Here, all of BaseRouter's methods are empty, because some routers may not want to have PreHandle or PostHandle.
16// Therefore, inheriting all routers from BaseRouter has the advantage that PreHandle and PostHandle do not need to be

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected