MCPcopy
hub / github.com/XTLS/Xray-core / init

Function init

proxy/tun/handler.go:160–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func init() {
161 common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
162 t := &Handler{config: config.(*Config)}
163 err := core.RequireFeatures(ctx, func(pm policy.Manager, dispatcher routing.Dispatcher) error {
164 return t.Init(ctx, pm, dispatcher)
165 })
166 return t, err
167 }))
168}

Callers

nothing calls this directly

Calls 4

InitMethod · 0.95
MustFunction · 0.92
RegisterConfigFunction · 0.92
RequireFeaturesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…