mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-11-16 05:23:05 -08:00
Add unit test for outbound handler
This commit is contained in:
1 parent
886598542c
commit
cef1836f5a
2 files changed
+70
-2
No files matched your search
+3
-2
@@ -6,9 +6,10 @@ import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type key int
|
||||
// V2rayKey is the key type of Instance in Context, exported for test.
|
||||
type V2rayKey int
|
||||
|
||||
const v2rayKey key = 1
|
||||
const v2rayKey V2rayKey = 1
|
||||
|
||||
// FromContext returns an Instance from the given context, or nil if the context doesn't contain one.
|
||||
func FromContext(ctx context.Context) *Instance {
|
||||
|
||||
Reference in new issue
Block a user