Debian Codegraph @

features/inbound/inbound.go

raw symbols SCIP
1 package inboundscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/
2
3 import (
4 "contextscip-go gomod github.com/golang/go/src go1.15 context/"
5
6 "v2ray.com/core/commonscip-go gomod v2ray.com/core . `v2ray.com/core/common`/"
7 "v2ray.com/core/common/netscip-go gomod v2ray.com/core . `v2ray.com/core/common/net`/"
8 "v2ray.com/core/featuresscip-go gomod v2ray.com/core . `v2ray.com/core/features`/"
9 )
10
11 // Handler is the interface for handlers that process inbound connections.
12 //
13 // v2ray:api:stable
14 type Handlerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Handler# interface {
15 commonscip-go gomod v2ray.com/core . `v2ray.com/core/common`/.Runnablescip-go gomod v2ray.com/core . `v2ray.com/core/common`/Runnable#
16 // The tag of this handler.
17 Tagscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Handler#Tag.() string
18
19 // Deprecated: Do not use in new code.
20 GetRandomInboundProxyscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Handler#GetRandomInboundProxy.() (interface{}, netscip-go gomod v2ray.com/core . `v2ray.com/core/common/net`/.Portscip-go gomod v2ray.com/core . `v2ray.com/core/common/net`/Port#, int)
21 }
22
23 // Manager is a feature that manages InboundHandlers.
24 //
25 // v2ray:api:stable
26 type Managerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Manager# interface {
27 featuresscip-go gomod v2ray.com/core . `v2ray.com/core/features`/.Featurescip-go gomod v2ray.com/core . `v2ray.com/core/features`/Feature#
28 // GetHandlers returns an InboundHandler for the given tag.
29 GetHandlerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Manager#GetHandler.(ctx contextscip-go gomod github.com/golang/go/src go1.15 context/.Contextscip-go gomod github.com/golang/go/src go1.15 context/Context#, tag string) (Handlerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Handler#, error)
30 // AddHandler adds the given handler into this Manager.
31 AddHandlerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Manager#AddHandler.(ctx contextscip-go gomod github.com/golang/go/src go1.15 context/.Contextscip-go gomod github.com/golang/go/src go1.15 context/Context#, handler Handlerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Handler#) error
32
33 // RemoveHandler removes a handler from Manager.
34 RemoveHandlerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Manager#RemoveHandler.(ctx contextscip-go gomod github.com/golang/go/src go1.15 context/.Contextscip-go gomod github.com/golang/go/src go1.15 context/Context#, tag string) error
35 }
36
37 // ManagerType returns the type of Manager interface. Can be used for implementing common.HasType.
38 //
39 // v2ray:api:stable
40 func ManagerTypescip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/ManagerType().() interface{} {
41 return (*Managerscip-go gomod v2ray.com/core . `v2ray.com/core/features/inbound`/Manager#)(nil)
42 }