github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/net/netapi/keys.go (about) 1 package netapi 2 3 type PreferIPv6 struct{} 4 5 type SourceKey struct{} 6 7 func (SourceKey) String() string { return "Source" } 8 9 type InboundKey struct{} 10 11 func (InboundKey) String() string { return "Inbound" } 12 13 type DestinationKey struct{} 14 15 func (DestinationKey) String() string { return "Destination" } 16 17 type FakeIPKey struct{} 18 19 func (FakeIPKey) String() string { return "FakeIP" } 20 21 type CurrentKey struct{}