@@ -58,7 +58,7 @@ type StartedServiceClient interface {
5858 SetGroupExpand (ctx context.Context , in * SetGroupExpandRequest , opts ... grpc.CallOption ) (* emptypb.Empty , error )
5959 GetSystemProxyStatus (ctx context.Context , in * emptypb.Empty , opts ... grpc.CallOption ) (* SystemProxyStatus , error )
6060 SetSystemProxyEnabled (ctx context.Context , in * SetSystemProxyEnabledRequest , opts ... grpc.CallOption ) (* emptypb.Empty , error )
61- SubscribeConnections (ctx context.Context , in * SubscribeConnectionsRequest , opts ... grpc.CallOption ) (grpc.ServerStreamingClient [Connections ], error )
61+ SubscribeConnections (ctx context.Context , in * SubscribeConnectionsRequest , opts ... grpc.CallOption ) (grpc.ServerStreamingClient [ConnectionEvents ], error )
6262 CloseConnection (ctx context.Context , in * CloseConnectionRequest , opts ... grpc.CallOption ) (* emptypb.Empty , error )
6363 CloseAllConnections (ctx context.Context , in * emptypb.Empty , opts ... grpc.CallOption ) (* emptypb.Empty , error )
6464 GetDeprecatedWarnings (ctx context.Context , in * emptypb.Empty , opts ... grpc.CallOption ) (* DeprecatedWarnings , error )
@@ -278,13 +278,13 @@ func (c *startedServiceClient) SetSystemProxyEnabled(ctx context.Context, in *Se
278278 return out , nil
279279}
280280
281- func (c * startedServiceClient ) SubscribeConnections (ctx context.Context , in * SubscribeConnectionsRequest , opts ... grpc.CallOption ) (grpc.ServerStreamingClient [Connections ], error ) {
281+ func (c * startedServiceClient ) SubscribeConnections (ctx context.Context , in * SubscribeConnectionsRequest , opts ... grpc.CallOption ) (grpc.ServerStreamingClient [ConnectionEvents ], error ) {
282282 cOpts := append ([]grpc.CallOption {grpc .StaticMethod ()}, opts ... )
283283 stream , err := c .cc .NewStream (ctx , & StartedService_ServiceDesc .Streams [5 ], StartedService_SubscribeConnections_FullMethodName , cOpts ... )
284284 if err != nil {
285285 return nil , err
286286 }
287- x := & grpc.GenericClientStream [SubscribeConnectionsRequest , Connections ]{ClientStream : stream }
287+ x := & grpc.GenericClientStream [SubscribeConnectionsRequest , ConnectionEvents ]{ClientStream : stream }
288288 if err := x .ClientStream .SendMsg (in ); err != nil {
289289 return nil , err
290290 }
@@ -295,7 +295,7 @@ func (c *startedServiceClient) SubscribeConnections(ctx context.Context, in *Sub
295295}
296296
297297// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
298- type StartedService_SubscribeConnectionsClient = grpc.ServerStreamingClient [Connections ]
298+ type StartedService_SubscribeConnectionsClient = grpc.ServerStreamingClient [ConnectionEvents ]
299299
300300func (c * startedServiceClient ) CloseConnection (ctx context.Context , in * CloseConnectionRequest , opts ... grpc.CallOption ) (* emptypb.Empty , error ) {
301301 cOpts := append ([]grpc.CallOption {grpc .StaticMethod ()}, opts ... )
@@ -357,7 +357,7 @@ type StartedServiceServer interface {
357357 SetGroupExpand (context.Context , * SetGroupExpandRequest ) (* emptypb.Empty , error )
358358 GetSystemProxyStatus (context.Context , * emptypb.Empty ) (* SystemProxyStatus , error )
359359 SetSystemProxyEnabled (context.Context , * SetSystemProxyEnabledRequest ) (* emptypb.Empty , error )
360- SubscribeConnections (* SubscribeConnectionsRequest , grpc.ServerStreamingServer [Connections ]) error
360+ SubscribeConnections (* SubscribeConnectionsRequest , grpc.ServerStreamingServer [ConnectionEvents ]) error
361361 CloseConnection (context.Context , * CloseConnectionRequest ) (* emptypb.Empty , error )
362362 CloseAllConnections (context.Context , * emptypb.Empty ) (* emptypb.Empty , error )
363363 GetDeprecatedWarnings (context.Context , * emptypb.Empty ) (* DeprecatedWarnings , error )
@@ -373,87 +373,87 @@ type StartedServiceServer interface {
373373type UnimplementedStartedServiceServer struct {}
374374
375375func (UnimplementedStartedServiceServer ) StopService (context.Context , * emptypb.Empty ) (* emptypb.Empty , error ) {
376- return nil , status .Errorf (codes .Unimplemented , "method StopService not implemented" )
376+ return nil , status .Error (codes .Unimplemented , "method StopService not implemented" )
377377}
378378
379379func (UnimplementedStartedServiceServer ) ReloadService (context.Context , * emptypb.Empty ) (* emptypb.Empty , error ) {
380- return nil , status .Errorf (codes .Unimplemented , "method ReloadService not implemented" )
380+ return nil , status .Error (codes .Unimplemented , "method ReloadService not implemented" )
381381}
382382
383383func (UnimplementedStartedServiceServer ) SubscribeServiceStatus (* emptypb.Empty , grpc.ServerStreamingServer [ServiceStatus ]) error {
384- return status .Errorf (codes .Unimplemented , "method SubscribeServiceStatus not implemented" )
384+ return status .Error (codes .Unimplemented , "method SubscribeServiceStatus not implemented" )
385385}
386386
387387func (UnimplementedStartedServiceServer ) SubscribeLog (* emptypb.Empty , grpc.ServerStreamingServer [Log ]) error {
388- return status .Errorf (codes .Unimplemented , "method SubscribeLog not implemented" )
388+ return status .Error (codes .Unimplemented , "method SubscribeLog not implemented" )
389389}
390390
391391func (UnimplementedStartedServiceServer ) GetDefaultLogLevel (context.Context , * emptypb.Empty ) (* DefaultLogLevel , error ) {
392- return nil , status .Errorf (codes .Unimplemented , "method GetDefaultLogLevel not implemented" )
392+ return nil , status .Error (codes .Unimplemented , "method GetDefaultLogLevel not implemented" )
393393}
394394
395395func (UnimplementedStartedServiceServer ) ClearLogs (context.Context , * emptypb.Empty ) (* emptypb.Empty , error ) {
396- return nil , status .Errorf (codes .Unimplemented , "method ClearLogs not implemented" )
396+ return nil , status .Error (codes .Unimplemented , "method ClearLogs not implemented" )
397397}
398398
399399func (UnimplementedStartedServiceServer ) SubscribeStatus (* SubscribeStatusRequest , grpc.ServerStreamingServer [Status ]) error {
400- return status .Errorf (codes .Unimplemented , "method SubscribeStatus not implemented" )
400+ return status .Error (codes .Unimplemented , "method SubscribeStatus not implemented" )
401401}
402402
403403func (UnimplementedStartedServiceServer ) SubscribeGroups (* emptypb.Empty , grpc.ServerStreamingServer [Groups ]) error {
404- return status .Errorf (codes .Unimplemented , "method SubscribeGroups not implemented" )
404+ return status .Error (codes .Unimplemented , "method SubscribeGroups not implemented" )
405405}
406406
407407func (UnimplementedStartedServiceServer ) GetClashModeStatus (context.Context , * emptypb.Empty ) (* ClashModeStatus , error ) {
408- return nil , status .Errorf (codes .Unimplemented , "method GetClashModeStatus not implemented" )
408+ return nil , status .Error (codes .Unimplemented , "method GetClashModeStatus not implemented" )
409409}
410410
411411func (UnimplementedStartedServiceServer ) SubscribeClashMode (* emptypb.Empty , grpc.ServerStreamingServer [ClashMode ]) error {
412- return status .Errorf (codes .Unimplemented , "method SubscribeClashMode not implemented" )
412+ return status .Error (codes .Unimplemented , "method SubscribeClashMode not implemented" )
413413}
414414
415415func (UnimplementedStartedServiceServer ) SetClashMode (context.Context , * ClashMode ) (* emptypb.Empty , error ) {
416- return nil , status .Errorf (codes .Unimplemented , "method SetClashMode not implemented" )
416+ return nil , status .Error (codes .Unimplemented , "method SetClashMode not implemented" )
417417}
418418
419419func (UnimplementedStartedServiceServer ) URLTest (context.Context , * URLTestRequest ) (* emptypb.Empty , error ) {
420- return nil , status .Errorf (codes .Unimplemented , "method URLTest not implemented" )
420+ return nil , status .Error (codes .Unimplemented , "method URLTest not implemented" )
421421}
422422
423423func (UnimplementedStartedServiceServer ) SelectOutbound (context.Context , * SelectOutboundRequest ) (* emptypb.Empty , error ) {
424- return nil , status .Errorf (codes .Unimplemented , "method SelectOutbound not implemented" )
424+ return nil , status .Error (codes .Unimplemented , "method SelectOutbound not implemented" )
425425}
426426
427427func (UnimplementedStartedServiceServer ) SetGroupExpand (context.Context , * SetGroupExpandRequest ) (* emptypb.Empty , error ) {
428- return nil , status .Errorf (codes .Unimplemented , "method SetGroupExpand not implemented" )
428+ return nil , status .Error (codes .Unimplemented , "method SetGroupExpand not implemented" )
429429}
430430
431431func (UnimplementedStartedServiceServer ) GetSystemProxyStatus (context.Context , * emptypb.Empty ) (* SystemProxyStatus , error ) {
432- return nil , status .Errorf (codes .Unimplemented , "method GetSystemProxyStatus not implemented" )
432+ return nil , status .Error (codes .Unimplemented , "method GetSystemProxyStatus not implemented" )
433433}
434434
435435func (UnimplementedStartedServiceServer ) SetSystemProxyEnabled (context.Context , * SetSystemProxyEnabledRequest ) (* emptypb.Empty , error ) {
436- return nil , status .Errorf (codes .Unimplemented , "method SetSystemProxyEnabled not implemented" )
436+ return nil , status .Error (codes .Unimplemented , "method SetSystemProxyEnabled not implemented" )
437437}
438438
439- func (UnimplementedStartedServiceServer ) SubscribeConnections (* SubscribeConnectionsRequest , grpc.ServerStreamingServer [Connections ]) error {
440- return status .Errorf (codes .Unimplemented , "method SubscribeConnections not implemented" )
439+ func (UnimplementedStartedServiceServer ) SubscribeConnections (* SubscribeConnectionsRequest , grpc.ServerStreamingServer [ConnectionEvents ]) error {
440+ return status .Error (codes .Unimplemented , "method SubscribeConnections not implemented" )
441441}
442442
443443func (UnimplementedStartedServiceServer ) CloseConnection (context.Context , * CloseConnectionRequest ) (* emptypb.Empty , error ) {
444- return nil , status .Errorf (codes .Unimplemented , "method CloseConnection not implemented" )
444+ return nil , status .Error (codes .Unimplemented , "method CloseConnection not implemented" )
445445}
446446
447447func (UnimplementedStartedServiceServer ) CloseAllConnections (context.Context , * emptypb.Empty ) (* emptypb.Empty , error ) {
448- return nil , status .Errorf (codes .Unimplemented , "method CloseAllConnections not implemented" )
448+ return nil , status .Error (codes .Unimplemented , "method CloseAllConnections not implemented" )
449449}
450450
451451func (UnimplementedStartedServiceServer ) GetDeprecatedWarnings (context.Context , * emptypb.Empty ) (* DeprecatedWarnings , error ) {
452- return nil , status .Errorf (codes .Unimplemented , "method GetDeprecatedWarnings not implemented" )
452+ return nil , status .Error (codes .Unimplemented , "method GetDeprecatedWarnings not implemented" )
453453}
454454
455455func (UnimplementedStartedServiceServer ) GetStartedAt (context.Context , * emptypb.Empty ) (* StartedAt , error ) {
456- return nil , status .Errorf (codes .Unimplemented , "method GetStartedAt not implemented" )
456+ return nil , status .Error (codes .Unimplemented , "method GetStartedAt not implemented" )
457457}
458458func (UnimplementedStartedServiceServer ) mustEmbedUnimplementedStartedServiceServer () {}
459459func (UnimplementedStartedServiceServer ) testEmbeddedByValue () {}
@@ -466,7 +466,7 @@ type UnsafeStartedServiceServer interface {
466466}
467467
468468func RegisterStartedServiceServer (s grpc.ServiceRegistrar , srv StartedServiceServer ) {
469- // If the following call pancis , it indicates UnimplementedStartedServiceServer was
469+ // If the following call panics , it indicates UnimplementedStartedServiceServer was
470470 // embedded by pointer and is nil. This will cause panics if an
471471 // unimplemented method is ever invoked, so we test this at initialization
472472 // time to prevent it from happening at runtime later due to I/O.
@@ -734,11 +734,11 @@ func _StartedService_SubscribeConnections_Handler(srv interface{}, stream grpc.S
734734 if err := stream .RecvMsg (m ); err != nil {
735735 return err
736736 }
737- return srv .(StartedServiceServer ).SubscribeConnections (m , & grpc.GenericServerStream [SubscribeConnectionsRequest , Connections ]{ServerStream : stream })
737+ return srv .(StartedServiceServer ).SubscribeConnections (m , & grpc.GenericServerStream [SubscribeConnectionsRequest , ConnectionEvents ]{ServerStream : stream })
738738}
739739
740740// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
741- type StartedService_SubscribeConnectionsServer = grpc.ServerStreamingServer [Connections ]
741+ type StartedService_SubscribeConnectionsServer = grpc.ServerStreamingServer [ConnectionEvents ]
742742
743743func _StartedService_CloseConnection_Handler (srv interface {}, ctx context.Context , dec func (interface {}) error , interceptor grpc.UnaryServerInterceptor ) (interface {}, error ) {
744744 in := new (CloseConnectionRequest )
0 commit comments