Add basic clash api
This commit is contained in:
14
experimental/clashapi/ctxkeys.go
Normal file
14
experimental/clashapi/ctxkeys.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package clashapi
|
||||
|
||||
var (
|
||||
CtxKeyProxyName = contextKey("proxy name")
|
||||
CtxKeyProviderName = contextKey("provider name")
|
||||
CtxKeyProxy = contextKey("proxy")
|
||||
CtxKeyProvider = contextKey("provider")
|
||||
)
|
||||
|
||||
type contextKey string
|
||||
|
||||
func (c contextKey) String() string {
|
||||
return "clash context key " + string(c)
|
||||
}
|
||||
Reference in New Issue
Block a user