space.go 408 B

12345678910111213141516
  1. package app
  2. // Context of a function call from proxy to app.
  3. type Context interface {
  4. CallerTag() string
  5. }
  6. // A Space contains all apps that may be available in a V2Ray runtime.
  7. // Caller must check the availability of an app by calling HasXXX before getting its instance.
  8. type Space interface {
  9. HasPacketDispatcher() bool
  10. PacketDispatcher() PacketDispatcher
  11. HasDnsCache() bool
  12. DnsCache() DnsCache
  13. }