2018-11-21 13:47:46 +08:00
|
|
|
package route
|
|
|
|
|
|
|
|
var (
|
2019-12-11 17:31:15 +08:00
|
|
|
CtxKeyProxyName = contextKey("proxy name")
|
|
|
|
CtxKeyProviderName = contextKey("provider name")
|
|
|
|
CtxKeyProxy = contextKey("proxy")
|
|
|
|
CtxKeyProvider = contextKey("provider")
|
2018-11-21 13:47:46 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type contextKey string
|
|
|
|
|
|
|
|
func (c contextKey) String() string {
|
2023-11-03 21:01:45 +08:00
|
|
|
return "mihomo context key " + string(c)
|
2018-11-21 13:47:46 +08:00
|
|
|
}
|