mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-18 03:29:12 -04:00
API doc
This commit is contained in:
2
v2ray.go
2
v2ray.go
@@ -303,6 +303,8 @@ func (s *Instance) GetFeature(featureType interface{}) features.Feature {
|
||||
|
||||
// Start starts the V2Ray instance, including all registered features. When Start returns error, the state of the instance is unknown.
|
||||
// A V2Ray instance can be started only once. Upon closing, the instance is not guaranteed to start again.
|
||||
//
|
||||
// v2ray:api:stable
|
||||
func (s *Instance) Start() error {
|
||||
s.access.Lock()
|
||||
defer s.access.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user