// Server is an instance of V2Ray. At any time, there must be at most one Server instance running.
@ -28,13 +29,16 @@ type Instance struct {
ohmsyncOutboundHandlerManager
features[]Feature
iduuid.UUID
}
// New returns a new V2Ray instance based on given configuration.
// The instance is not started at this point.
// To make sure V2Ray instance works properly, the config must contain one Dispatcher, one InboundHandlerManager and one OutboundHandlerManager. Other features are optional.