Chore: improve code architecture
This commit is contained in:
12
hub/route/ctxkeys.go
Normal file
12
hub/route/ctxkeys.go
Normal file
@ -0,0 +1,12 @@
|
||||
package route
|
||||
|
||||
var (
|
||||
CtxKeyProxyName = contextKey("proxy name")
|
||||
CtxKeyProxy = contextKey("proxy")
|
||||
)
|
||||
|
||||
type contextKey string
|
||||
|
||||
func (c contextKey) String() string {
|
||||
return "clash context key " + string(c)
|
||||
}
|
Reference in New Issue
Block a user