Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStartedServiceServer(s grpc.ServiceRegistrar, srv StartedServiceServer)
- type ClashMode
- type ClashModeStatus
- func (*ClashModeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ClashModeStatus) GetCurrentMode() string
- func (x *ClashModeStatus) GetModeList() []string
- func (*ClashModeStatus) ProtoMessage()
- func (x *ClashModeStatus) ProtoReflect() protoreflect.Message
- func (x *ClashModeStatus) Reset()
- func (x *ClashModeStatus) String() string
- type CloseConnectionRequest
- func (*CloseConnectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseConnectionRequest) GetId() string
- func (*CloseConnectionRequest) ProtoMessage()
- func (x *CloseConnectionRequest) ProtoReflect() protoreflect.Message
- func (x *CloseConnectionRequest) Reset()
- func (x *CloseConnectionRequest) String() string
- type Connection
- func (*Connection) Descriptor() ([]byte, []int)deprecated
- func (x *Connection) GetChainList() []string
- func (x *Connection) GetClosedAt() int64
- func (x *Connection) GetCreatedAt() int64
- func (x *Connection) GetDestination() string
- func (x *Connection) GetDomain() string
- func (x *Connection) GetDownlink() int64
- func (x *Connection) GetDownlinkTotal() int64
- func (x *Connection) GetFromOutbound() string
- func (x *Connection) GetId() string
- func (x *Connection) GetInbound() string
- func (x *Connection) GetInboundType() string
- func (x *Connection) GetIpVersion() int32
- func (x *Connection) GetNetwork() string
- func (x *Connection) GetOutbound() string
- func (x *Connection) GetOutboundType() string
- func (x *Connection) GetProcessInfo() *ProcessInfo
- func (x *Connection) GetProtocol() string
- func (x *Connection) GetRule() string
- func (x *Connection) GetSource() string
- func (x *Connection) GetUplink() int64
- func (x *Connection) GetUplinkTotal() int64
- func (x *Connection) GetUser() string
- func (*Connection) ProtoMessage()
- func (x *Connection) ProtoReflect() protoreflect.Message
- func (x *Connection) Reset()
- func (x *Connection) String() string
- type ConnectionFilter
- func (ConnectionFilter) Descriptor() protoreflect.EnumDescriptor
- func (x ConnectionFilter) Enum() *ConnectionFilter
- func (ConnectionFilter) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConnectionFilter) Number() protoreflect.EnumNumber
- func (x ConnectionFilter) String() string
- func (ConnectionFilter) Type() protoreflect.EnumType
- type ConnectionOwner
- func (*ConnectionOwner) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionOwner) GetAndroidPackageName() string
- func (x *ConnectionOwner) GetProcessPath() string
- func (x *ConnectionOwner) GetUserId() int32
- func (x *ConnectionOwner) GetUserName() string
- func (*ConnectionOwner) ProtoMessage()
- func (x *ConnectionOwner) ProtoReflect() protoreflect.Message
- func (x *ConnectionOwner) Reset()
- func (x *ConnectionOwner) String() string
- type ConnectionSortBy
- func (ConnectionSortBy) Descriptor() protoreflect.EnumDescriptor
- func (x ConnectionSortBy) Enum() *ConnectionSortBy
- func (ConnectionSortBy) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConnectionSortBy) Number() protoreflect.EnumNumber
- func (x ConnectionSortBy) String() string
- func (ConnectionSortBy) Type() protoreflect.EnumType
- type Connections
- type DefaultLogLevel
- type DeprecatedWarning
- func (*DeprecatedWarning) Descriptor() ([]byte, []int)deprecated
- func (x *DeprecatedWarning) GetImpending() bool
- func (x *DeprecatedWarning) GetMessage() string
- func (x *DeprecatedWarning) GetMigrationLink() string
- func (*DeprecatedWarning) ProtoMessage()
- func (x *DeprecatedWarning) ProtoReflect() protoreflect.Message
- func (x *DeprecatedWarning) Reset()
- func (x *DeprecatedWarning) String() string
- type DeprecatedWarnings
- func (*DeprecatedWarnings) Descriptor() ([]byte, []int)deprecated
- func (x *DeprecatedWarnings) GetWarnings() []*DeprecatedWarning
- func (*DeprecatedWarnings) ProtoMessage()
- func (x *DeprecatedWarnings) ProtoReflect() protoreflect.Message
- func (x *DeprecatedWarnings) Reset()
- func (x *DeprecatedWarnings) String() string
- type FindConnectionOwnerRequest
- func (*FindConnectionOwnerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindConnectionOwnerRequest) GetDestinationAddress() string
- func (x *FindConnectionOwnerRequest) GetDestinationPort() int32
- func (x *FindConnectionOwnerRequest) GetIpProtocol() int32
- func (x *FindConnectionOwnerRequest) GetSourceAddress() string
- func (x *FindConnectionOwnerRequest) GetSourcePort() int32
- func (*FindConnectionOwnerRequest) ProtoMessage()
- func (x *FindConnectionOwnerRequest) ProtoReflect() protoreflect.Message
- func (x *FindConnectionOwnerRequest) Reset()
- func (x *FindConnectionOwnerRequest) String() string
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetIsExpand() bool
- func (x *Group) GetItems() []*GroupItem
- func (x *Group) GetSelectable() bool
- func (x *Group) GetSelected() string
- func (x *Group) GetTag() string
- func (x *Group) GetType() string
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupItem
- func (*GroupItem) Descriptor() ([]byte, []int)deprecated
- func (x *GroupItem) GetTag() string
- func (x *GroupItem) GetType() string
- func (x *GroupItem) GetUrlTestDelay() int32
- func (x *GroupItem) GetUrlTestTime() int64
- func (*GroupItem) ProtoMessage()
- func (x *GroupItem) ProtoReflect() protoreflect.Message
- func (x *GroupItem) Reset()
- func (x *GroupItem) String() string
- type Groups
- type HelperRequest
- func (*HelperRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HelperRequest) GetFindConnectionOwner() *FindConnectionOwnerRequest
- func (x *HelperRequest) GetGetWIFIState() *emptypb.Empty
- func (x *HelperRequest) GetId() int64
- func (x *HelperRequest) GetRequest() isHelperRequest_Request
- func (x *HelperRequest) GetSendNotification() *Notification
- func (*HelperRequest) ProtoMessage()
- func (x *HelperRequest) ProtoReflect() protoreflect.Message
- func (x *HelperRequest) Reset()
- func (x *HelperRequest) String() string
- type HelperRequest_FindConnectionOwner
- type HelperRequest_GetWIFIState
- type HelperRequest_SendNotification
- type HelperResponse
- func (*HelperResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HelperResponse) GetConnectionOwner() *ConnectionOwner
- func (x *HelperResponse) GetError() string
- func (x *HelperResponse) GetId() int64
- func (x *HelperResponse) GetResponse() isHelperResponse_Response
- func (x *HelperResponse) GetWifiState() *WIFIState
- func (*HelperResponse) ProtoMessage()
- func (x *HelperResponse) ProtoReflect() protoreflect.Message
- func (x *HelperResponse) Reset()
- func (x *HelperResponse) String() string
- type HelperResponse_ConnectionOwner
- type HelperResponse_Error
- type HelperResponse_WifiState
- type Instance
- type Log
- type LogLevel
- type Log_Message
- func (*Log_Message) Descriptor() ([]byte, []int)deprecated
- func (x *Log_Message) GetLevel() LogLevel
- func (x *Log_Message) GetMessage() string
- func (*Log_Message) ProtoMessage()
- func (x *Log_Message) ProtoReflect() protoreflect.Message
- func (x *Log_Message) Reset()
- func (x *Log_Message) String() string
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetBody() string
- func (x *Notification) GetIdentifier() string
- func (x *Notification) GetOpenURL() string
- func (x *Notification) GetSubtitle() string
- func (x *Notification) GetTitle() string
- func (x *Notification) GetTypeId() int32
- func (x *Notification) GetTypeName() string
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type OverrideOptions
- type PlatformHandler
- type ProcessInfo
- func (*ProcessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessInfo) GetPackageName() string
- func (x *ProcessInfo) GetProcessId() uint32
- func (x *ProcessInfo) GetProcessPath() string
- func (x *ProcessInfo) GetUserId() int32
- func (x *ProcessInfo) GetUserName() string
- func (*ProcessInfo) ProtoMessage()
- func (x *ProcessInfo) ProtoReflect() protoreflect.Message
- func (x *ProcessInfo) Reset()
- func (x *ProcessInfo) String() string
- type ReloadServiceRequest
- func (*ReloadServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReloadServiceRequest) GetNewProfileContent() string
- func (*ReloadServiceRequest) ProtoMessage()
- func (x *ReloadServiceRequest) ProtoReflect() protoreflect.Message
- func (x *ReloadServiceRequest) Reset()
- func (x *ReloadServiceRequest) String() string
- type SelectOutboundRequest
- func (*SelectOutboundRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SelectOutboundRequest) GetGroupTag() string
- func (x *SelectOutboundRequest) GetOutboundTag() string
- func (*SelectOutboundRequest) ProtoMessage()
- func (x *SelectOutboundRequest) ProtoReflect() protoreflect.Message
- func (x *SelectOutboundRequest) Reset()
- func (x *SelectOutboundRequest) String() string
- type ServiceOptions
- type ServiceStatus
- func (*ServiceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceStatus) GetErrorMessage() string
- func (x *ServiceStatus) GetStatus() ServiceStatus_Type
- func (*ServiceStatus) ProtoMessage()
- func (x *ServiceStatus) ProtoReflect() protoreflect.Message
- func (x *ServiceStatus) Reset()
- func (x *ServiceStatus) String() string
- type ServiceStatus_Type
- func (ServiceStatus_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceStatus_Type) Enum() *ServiceStatus_Type
- func (ServiceStatus_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceStatus_Type) Number() protoreflect.EnumNumber
- func (x ServiceStatus_Type) String() string
- func (ServiceStatus_Type) Type() protoreflect.EnumType
- type SetGroupExpandRequest
- func (*SetGroupExpandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupExpandRequest) GetGroupTag() string
- func (x *SetGroupExpandRequest) GetIsExpand() bool
- func (*SetGroupExpandRequest) ProtoMessage()
- func (x *SetGroupExpandRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupExpandRequest) Reset()
- func (x *SetGroupExpandRequest) String() string
- type SetSystemProxyEnabledRequest
- func (*SetSystemProxyEnabledRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetSystemProxyEnabledRequest) GetEnabled() bool
- func (*SetSystemProxyEnabledRequest) ProtoMessage()
- func (x *SetSystemProxyEnabledRequest) ProtoReflect() protoreflect.Message
- func (x *SetSystemProxyEnabledRequest) Reset()
- func (x *SetSystemProxyEnabledRequest) String() string
- type StartedAt
- type StartedService
- func (s *StartedService) CheckConfig(configContent string) error
- func (s *StartedService) ClearLogs(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)
- func (s *StartedService) CloseAllConnections(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)
- func (s *StartedService) CloseConnection(ctx context.Context, request *CloseConnectionRequest) (*emptypb.Empty, error)
- func (s *StartedService) CloseService() error
- func (s *StartedService) FormatConfig(configContent string) (string, error)
- func (s *StartedService) GetClashModeStatus(ctx context.Context, empty *emptypb.Empty) (*ClashModeStatus, error)
- func (s *StartedService) GetDefaultLogLevel(ctx context.Context, empty *emptypb.Empty) (*DefaultLogLevel, error)
- func (s *StartedService) GetDeprecatedWarnings(ctx context.Context, empty *emptypb.Empty) (*DeprecatedWarnings, error)
- func (s *StartedService) GetStartedAt(ctx context.Context, empty *emptypb.Empty) (*StartedAt, error)
- func (s *StartedService) GetSystemProxyStatus(ctx context.Context, empty *emptypb.Empty) (*SystemProxyStatus, error)
- func (s *StartedService) Instance() *Instance
- func (s *StartedService) ReloadService(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)
- func (s *StartedService) SelectOutbound(ctx context.Context, request *SelectOutboundRequest) (*emptypb.Empty, error)
- func (s *StartedService) SendHelperResponse(ctx context.Context, response *HelperResponse) (*emptypb.Empty, error)
- func (s *StartedService) SetClashMode(ctx context.Context, request *ClashMode) (*emptypb.Empty, error)
- func (s *StartedService) SetError(err error)
- func (s *StartedService) SetGroupExpand(ctx context.Context, request *SetGroupExpandRequest) (*emptypb.Empty, error)
- func (s *StartedService) SetSystemProxyEnabled(ctx context.Context, request *SetSystemProxyEnabledRequest) (*emptypb.Empty, error)
- func (s *StartedService) StartOrReloadService(profileContent string, options *OverrideOptions) error
- func (s *StartedService) StopService(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)
- func (s *StartedService) SubscribeClashMode(empty *emptypb.Empty, server grpc.ServerStreamingServer[ClashMode]) error
- func (s *StartedService) SubscribeConnections(request *SubscribeConnectionsRequest, ...) error
- func (s *StartedService) SubscribeGroups(empty *emptypb.Empty, server grpc.ServerStreamingServer[Groups]) error
- func (s *StartedService) SubscribeHelperEvents(empty *emptypb.Empty, server grpc.ServerStreamingServer[HelperRequest]) error
- func (s *StartedService) SubscribeLog(empty *emptypb.Empty, server grpc.ServerStreamingServer[Log]) error
- func (s *StartedService) SubscribeServiceStatus(empty *emptypb.Empty, server grpc.ServerStreamingServer[ServiceStatus]) error
- func (s *StartedService) SubscribeStatus(request *SubscribeStatusRequest, server grpc.ServerStreamingServer[Status]) error
- func (s *StartedService) URLTest(ctx context.Context, request *URLTestRequest) (*emptypb.Empty, error)
- func (s *StartedService) WriteMessage(level log.Level, message string)
- type StartedServiceClient
- type StartedServiceServer
- type StartedService_SubscribeClashModeClient
- type StartedService_SubscribeClashModeServer
- type StartedService_SubscribeConnectionsClient
- type StartedService_SubscribeConnectionsServer
- type StartedService_SubscribeGroupsClient
- type StartedService_SubscribeGroupsServer
- type StartedService_SubscribeHelperEventsClient
- type StartedService_SubscribeHelperEventsServer
- type StartedService_SubscribeLogClient
- type StartedService_SubscribeLogServer
- type StartedService_SubscribeServiceStatusClient
- type StartedService_SubscribeServiceStatusServer
- type StartedService_SubscribeStatusClient
- type StartedService_SubscribeStatusServer
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetConnectionsIn() int32
- func (x *Status) GetConnectionsOut() int32
- func (x *Status) GetDownlink() int64
- func (x *Status) GetDownlinkTotal() int64
- func (x *Status) GetGoroutines() int32
- func (x *Status) GetMemory() uint64
- func (x *Status) GetTrafficAvailable() bool
- func (x *Status) GetUplink() int64
- func (x *Status) GetUplinkTotal() int64
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type SubscribeConnectionsRequest
- func (*SubscribeConnectionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeConnectionsRequest) GetFilter() ConnectionFilter
- func (x *SubscribeConnectionsRequest) GetInterval() int64
- func (x *SubscribeConnectionsRequest) GetSortBy() ConnectionSortBy
- func (*SubscribeConnectionsRequest) ProtoMessage()
- func (x *SubscribeConnectionsRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeConnectionsRequest) Reset()
- func (x *SubscribeConnectionsRequest) String() string
- type SubscribeHelperRequestRequest
- func (*SubscribeHelperRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeHelperRequestRequest) GetAcceptFindConnectionOwnerRequests() bool
- func (x *SubscribeHelperRequestRequest) GetAcceptGetWIFIStateRequests() bool
- func (x *SubscribeHelperRequestRequest) GetAcceptSendNotificationRequests() bool
- func (*SubscribeHelperRequestRequest) ProtoMessage()
- func (x *SubscribeHelperRequestRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeHelperRequestRequest) Reset()
- func (x *SubscribeHelperRequestRequest) String() string
- type SubscribeStatusRequest
- func (*SubscribeStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeStatusRequest) GetInterval() int64
- func (*SubscribeStatusRequest) ProtoMessage()
- func (x *SubscribeStatusRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeStatusRequest) Reset()
- func (x *SubscribeStatusRequest) String() string
- type SystemProxyStatus
- func (*SystemProxyStatus) Descriptor() ([]byte, []int)deprecated
- func (x *SystemProxyStatus) GetAvailable() bool
- func (x *SystemProxyStatus) GetEnabled() bool
- func (*SystemProxyStatus) ProtoMessage()
- func (x *SystemProxyStatus) ProtoReflect() protoreflect.Message
- func (x *SystemProxyStatus) Reset()
- func (x *SystemProxyStatus) String() string
- type URLTestRequest
- type UnimplementedStartedServiceServer
- func (UnimplementedStartedServiceServer) ClearLogs(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) CloseAllConnections(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) CloseConnection(context.Context, *CloseConnectionRequest) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) GetClashModeStatus(context.Context, *emptypb.Empty) (*ClashModeStatus, error)
- func (UnimplementedStartedServiceServer) GetDefaultLogLevel(context.Context, *emptypb.Empty) (*DefaultLogLevel, error)
- func (UnimplementedStartedServiceServer) GetDeprecatedWarnings(context.Context, *emptypb.Empty) (*DeprecatedWarnings, error)
- func (UnimplementedStartedServiceServer) GetStartedAt(context.Context, *emptypb.Empty) (*StartedAt, error)
- func (UnimplementedStartedServiceServer) GetSystemProxyStatus(context.Context, *emptypb.Empty) (*SystemProxyStatus, error)
- func (UnimplementedStartedServiceServer) ReloadService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) SelectOutbound(context.Context, *SelectOutboundRequest) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) SendHelperResponse(context.Context, *HelperResponse) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) SetClashMode(context.Context, *ClashMode) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) SetGroupExpand(context.Context, *SetGroupExpandRequest) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) SetSystemProxyEnabled(context.Context, *SetSystemProxyEnabledRequest) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) StopService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStartedServiceServer) SubscribeClashMode(*emptypb.Empty, grpc.ServerStreamingServer[ClashMode]) error
- func (UnimplementedStartedServiceServer) SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[Connections]) error
- func (UnimplementedStartedServiceServer) SubscribeGroups(*emptypb.Empty, grpc.ServerStreamingServer[Groups]) error
- func (UnimplementedStartedServiceServer) SubscribeHelperEvents(*emptypb.Empty, grpc.ServerStreamingServer[HelperRequest]) error
- func (UnimplementedStartedServiceServer) SubscribeLog(*emptypb.Empty, grpc.ServerStreamingServer[Log]) error
- func (UnimplementedStartedServiceServer) SubscribeServiceStatus(*emptypb.Empty, grpc.ServerStreamingServer[ServiceStatus]) error
- func (UnimplementedStartedServiceServer) SubscribeStatus(*SubscribeStatusRequest, grpc.ServerStreamingServer[Status]) error
- func (UnimplementedStartedServiceServer) URLTest(context.Context, *URLTestRequest) (*emptypb.Empty, error)
- type UnsafeStartedServiceServer
- type WIFIState
Constants ¶
const ( StartedService_StopService_FullMethodName = "/daemon.StartedService/StopService" StartedService_ReloadService_FullMethodName = "/daemon.StartedService/ReloadService" StartedService_SubscribeServiceStatus_FullMethodName = "/daemon.StartedService/SubscribeServiceStatus" StartedService_SubscribeLog_FullMethodName = "/daemon.StartedService/SubscribeLog" StartedService_GetDefaultLogLevel_FullMethodName = "/daemon.StartedService/GetDefaultLogLevel" StartedService_ClearLogs_FullMethodName = "/daemon.StartedService/ClearLogs" StartedService_SubscribeStatus_FullMethodName = "/daemon.StartedService/SubscribeStatus" StartedService_SubscribeGroups_FullMethodName = "/daemon.StartedService/SubscribeGroups" StartedService_GetClashModeStatus_FullMethodName = "/daemon.StartedService/GetClashModeStatus" StartedService_SubscribeClashMode_FullMethodName = "/daemon.StartedService/SubscribeClashMode" StartedService_SetClashMode_FullMethodName = "/daemon.StartedService/SetClashMode" StartedService_URLTest_FullMethodName = "/daemon.StartedService/URLTest" StartedService_SelectOutbound_FullMethodName = "/daemon.StartedService/SelectOutbound" StartedService_SetGroupExpand_FullMethodName = "/daemon.StartedService/SetGroupExpand" StartedService_GetSystemProxyStatus_FullMethodName = "/daemon.StartedService/GetSystemProxyStatus" StartedService_SetSystemProxyEnabled_FullMethodName = "/daemon.StartedService/SetSystemProxyEnabled" StartedService_SubscribeConnections_FullMethodName = "/daemon.StartedService/SubscribeConnections" StartedService_CloseConnection_FullMethodName = "/daemon.StartedService/CloseConnection" StartedService_CloseAllConnections_FullMethodName = "/daemon.StartedService/CloseAllConnections" StartedService_GetDeprecatedWarnings_FullMethodName = "/daemon.StartedService/GetDeprecatedWarnings" StartedService_GetStartedAt_FullMethodName = "/daemon.StartedService/GetStartedAt" StartedService_SubscribeHelperEvents_FullMethodName = "/daemon.StartedService/SubscribeHelperEvents" StartedService_SendHelperResponse_FullMethodName = "/daemon.StartedService/SendHelperResponse" )
Variables ¶
var ( LogLevel_name = map[int32]string{ 0: "PANIC", 1: "FATAL", 2: "ERROR", 3: "WARN", 4: "INFO", 5: "DEBUG", 6: "TRACE", } LogLevel_value = map[string]int32{ "PANIC": 0, "FATAL": 1, "ERROR": 2, "WARN": 3, "INFO": 4, "DEBUG": 5, "TRACE": 6, } )
Enum value maps for LogLevel.
var ( ConnectionFilter_name = map[int32]string{ 0: "ALL", 1: "ACTIVE", 2: "CLOSED", } ConnectionFilter_value = map[string]int32{ "ALL": 0, "ACTIVE": 1, "CLOSED": 2, } )
Enum value maps for ConnectionFilter.
var ( ConnectionSortBy_name = map[int32]string{ 0: "DATE", 1: "TRAFFIC", 2: "TOTAL_TRAFFIC", } ConnectionSortBy_value = map[string]int32{ "DATE": 0, "TRAFFIC": 1, "TOTAL_TRAFFIC": 2, } )
Enum value maps for ConnectionSortBy.
var ( ServiceStatus_Type_name = map[int32]string{ 0: "IDLE", 1: "STARTING", 2: "STARTED", 3: "STOPPING", 4: "FATAL", } ServiceStatus_Type_value = map[string]int32{ "IDLE": 0, "STARTING": 1, "STARTED": 2, "STOPPING": 3, "FATAL": 4, } )
Enum value maps for ServiceStatus_Type.
var File_daemon_helper_proto protoreflect.FileDescriptor
var File_daemon_started_service_proto protoreflect.FileDescriptor
var StartedService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "daemon.StartedService", HandlerType: (*StartedServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StopService", Handler: _StartedService_StopService_Handler, }, { MethodName: "ReloadService", Handler: _StartedService_ReloadService_Handler, }, { MethodName: "GetDefaultLogLevel", Handler: _StartedService_GetDefaultLogLevel_Handler, }, { MethodName: "ClearLogs", Handler: _StartedService_ClearLogs_Handler, }, { MethodName: "GetClashModeStatus", Handler: _StartedService_GetClashModeStatus_Handler, }, { MethodName: "SetClashMode", Handler: _StartedService_SetClashMode_Handler, }, { MethodName: "URLTest", Handler: _StartedService_URLTest_Handler, }, { MethodName: "SelectOutbound", Handler: _StartedService_SelectOutbound_Handler, }, { MethodName: "SetGroupExpand", Handler: _StartedService_SetGroupExpand_Handler, }, { MethodName: "GetSystemProxyStatus", Handler: _StartedService_GetSystemProxyStatus_Handler, }, { MethodName: "SetSystemProxyEnabled", Handler: _StartedService_SetSystemProxyEnabled_Handler, }, { MethodName: "CloseConnection", Handler: _StartedService_CloseConnection_Handler, }, { MethodName: "CloseAllConnections", Handler: _StartedService_CloseAllConnections_Handler, }, { MethodName: "GetDeprecatedWarnings", Handler: _StartedService_GetDeprecatedWarnings_Handler, }, { MethodName: "GetStartedAt", Handler: _StartedService_GetStartedAt_Handler, }, { MethodName: "SendHelperResponse", Handler: _StartedService_SendHelperResponse_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeServiceStatus", Handler: _StartedService_SubscribeServiceStatus_Handler, ServerStreams: true, }, { StreamName: "SubscribeLog", Handler: _StartedService_SubscribeLog_Handler, ServerStreams: true, }, { StreamName: "SubscribeStatus", Handler: _StartedService_SubscribeStatus_Handler, ServerStreams: true, }, { StreamName: "SubscribeGroups", Handler: _StartedService_SubscribeGroups_Handler, ServerStreams: true, }, { StreamName: "SubscribeClashMode", Handler: _StartedService_SubscribeClashMode_Handler, ServerStreams: true, }, { StreamName: "SubscribeConnections", Handler: _StartedService_SubscribeConnections_Handler, ServerStreams: true, }, { StreamName: "SubscribeHelperEvents", Handler: _StartedService_SubscribeHelperEvents_Handler, ServerStreams: true, }, }, Metadata: "daemon/started_service.proto", }
StartedService_ServiceDesc is the grpc.ServiceDesc for StartedService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStartedServiceServer ¶
func RegisterStartedServiceServer(s grpc.ServiceRegistrar, srv StartedServiceServer)
Types ¶
type ClashMode ¶
type ClashMode struct {
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*ClashMode) Descriptor
deprecated
func (*ClashMode) ProtoMessage ¶
func (*ClashMode) ProtoMessage()
func (*ClashMode) ProtoReflect ¶
func (x *ClashMode) ProtoReflect() protoreflect.Message
type ClashModeStatus ¶
type ClashModeStatus struct {
ModeList []string `protobuf:"bytes,1,rep,name=modeList,proto3" json:"modeList,omitempty"`
CurrentMode string `protobuf:"bytes,2,opt,name=currentMode,proto3" json:"currentMode,omitempty"`
// contains filtered or unexported fields
}
func (*ClashModeStatus) Descriptor
deprecated
func (*ClashModeStatus) Descriptor() ([]byte, []int)
Deprecated: Use ClashModeStatus.ProtoReflect.Descriptor instead.
func (*ClashModeStatus) GetCurrentMode ¶
func (x *ClashModeStatus) GetCurrentMode() string
func (*ClashModeStatus) GetModeList ¶
func (x *ClashModeStatus) GetModeList() []string
func (*ClashModeStatus) ProtoMessage ¶
func (*ClashModeStatus) ProtoMessage()
func (*ClashModeStatus) ProtoReflect ¶
func (x *ClashModeStatus) ProtoReflect() protoreflect.Message
func (*ClashModeStatus) Reset ¶
func (x *ClashModeStatus) Reset()
func (*ClashModeStatus) String ¶
func (x *ClashModeStatus) String() string
type CloseConnectionRequest ¶
type CloseConnectionRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*CloseConnectionRequest) Descriptor
deprecated
func (*CloseConnectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloseConnectionRequest.ProtoReflect.Descriptor instead.
func (*CloseConnectionRequest) GetId ¶
func (x *CloseConnectionRequest) GetId() string
func (*CloseConnectionRequest) ProtoMessage ¶
func (*CloseConnectionRequest) ProtoMessage()
func (*CloseConnectionRequest) ProtoReflect ¶
func (x *CloseConnectionRequest) ProtoReflect() protoreflect.Message
func (*CloseConnectionRequest) Reset ¶
func (x *CloseConnectionRequest) Reset()
func (*CloseConnectionRequest) String ¶
func (x *CloseConnectionRequest) String() string
type Connection ¶
type Connection struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Inbound string `protobuf:"bytes,2,opt,name=inbound,proto3" json:"inbound,omitempty"`
InboundType string `protobuf:"bytes,3,opt,name=inboundType,proto3" json:"inboundType,omitempty"`
IpVersion int32 `protobuf:"varint,4,opt,name=ipVersion,proto3" json:"ipVersion,omitempty"`
Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`
Source string `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
Destination string `protobuf:"bytes,7,opt,name=destination,proto3" json:"destination,omitempty"`
Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty"`
Protocol string `protobuf:"bytes,9,opt,name=protocol,proto3" json:"protocol,omitempty"`
User string `protobuf:"bytes,10,opt,name=user,proto3" json:"user,omitempty"`
FromOutbound string `protobuf:"bytes,11,opt,name=fromOutbound,proto3" json:"fromOutbound,omitempty"`
CreatedAt int64 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
ClosedAt int64 `protobuf:"varint,13,opt,name=closedAt,proto3" json:"closedAt,omitempty"`
Uplink int64 `protobuf:"varint,14,opt,name=uplink,proto3" json:"uplink,omitempty"`
Downlink int64 `protobuf:"varint,15,opt,name=downlink,proto3" json:"downlink,omitempty"`
UplinkTotal int64 `protobuf:"varint,16,opt,name=uplinkTotal,proto3" json:"uplinkTotal,omitempty"`
DownlinkTotal int64 `protobuf:"varint,17,opt,name=downlinkTotal,proto3" json:"downlinkTotal,omitempty"`
Rule string `protobuf:"bytes,18,opt,name=rule,proto3" json:"rule,omitempty"`
Outbound string `protobuf:"bytes,19,opt,name=outbound,proto3" json:"outbound,omitempty"`
OutboundType string `protobuf:"bytes,20,opt,name=outboundType,proto3" json:"outboundType,omitempty"`
ChainList []string `protobuf:"bytes,21,rep,name=chainList,proto3" json:"chainList,omitempty"`
ProcessInfo *ProcessInfo `protobuf:"bytes,22,opt,name=processInfo,proto3" json:"processInfo,omitempty"`
// contains filtered or unexported fields
}
func (*Connection) Descriptor
deprecated
func (*Connection) Descriptor() ([]byte, []int)
Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) GetChainList ¶
func (x *Connection) GetChainList() []string
func (*Connection) GetClosedAt ¶
func (x *Connection) GetClosedAt() int64
func (*Connection) GetCreatedAt ¶
func (x *Connection) GetCreatedAt() int64
func (*Connection) GetDestination ¶
func (x *Connection) GetDestination() string
func (*Connection) GetDomain ¶
func (x *Connection) GetDomain() string
func (*Connection) GetDownlink ¶
func (x *Connection) GetDownlink() int64
func (*Connection) GetDownlinkTotal ¶
func (x *Connection) GetDownlinkTotal() int64
func (*Connection) GetFromOutbound ¶
func (x *Connection) GetFromOutbound() string
func (*Connection) GetId ¶
func (x *Connection) GetId() string
func (*Connection) GetInbound ¶
func (x *Connection) GetInbound() string
func (*Connection) GetInboundType ¶
func (x *Connection) GetInboundType() string
func (*Connection) GetIpVersion ¶
func (x *Connection) GetIpVersion() int32
func (*Connection) GetNetwork ¶
func (x *Connection) GetNetwork() string
func (*Connection) GetOutbound ¶
func (x *Connection) GetOutbound() string
func (*Connection) GetOutboundType ¶
func (x *Connection) GetOutboundType() string
func (*Connection) GetProcessInfo ¶
func (x *Connection) GetProcessInfo() *ProcessInfo
func (*Connection) GetProtocol ¶
func (x *Connection) GetProtocol() string
func (*Connection) GetRule ¶
func (x *Connection) GetRule() string
func (*Connection) GetSource ¶
func (x *Connection) GetSource() string
func (*Connection) GetUplink ¶
func (x *Connection) GetUplink() int64
func (*Connection) GetUplinkTotal ¶
func (x *Connection) GetUplinkTotal() int64
func (*Connection) GetUser ¶
func (x *Connection) GetUser() string
func (*Connection) ProtoMessage ¶
func (*Connection) ProtoMessage()
func (*Connection) ProtoReflect ¶
func (x *Connection) ProtoReflect() protoreflect.Message
func (*Connection) Reset ¶
func (x *Connection) Reset()
func (*Connection) String ¶
func (x *Connection) String() string
type ConnectionFilter ¶
type ConnectionFilter int32
const ( ConnectionFilter_ALL ConnectionFilter = 0 ConnectionFilter_ACTIVE ConnectionFilter = 1 ConnectionFilter_CLOSED ConnectionFilter = 2 )
func (ConnectionFilter) Descriptor ¶
func (ConnectionFilter) Descriptor() protoreflect.EnumDescriptor
func (ConnectionFilter) Enum ¶
func (x ConnectionFilter) Enum() *ConnectionFilter
func (ConnectionFilter) EnumDescriptor
deprecated
func (ConnectionFilter) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConnectionFilter.Descriptor instead.
func (ConnectionFilter) Number ¶
func (x ConnectionFilter) Number() protoreflect.EnumNumber
func (ConnectionFilter) String ¶
func (x ConnectionFilter) String() string
func (ConnectionFilter) Type ¶
func (ConnectionFilter) Type() protoreflect.EnumType
type ConnectionOwner ¶
type ConnectionOwner struct {
UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
ProcessPath string `protobuf:"bytes,3,opt,name=processPath,proto3" json:"processPath,omitempty"`
AndroidPackageName string `protobuf:"bytes,4,opt,name=androidPackageName,proto3" json:"androidPackageName,omitempty"`
// contains filtered or unexported fields
}
func (*ConnectionOwner) Descriptor
deprecated
func (*ConnectionOwner) Descriptor() ([]byte, []int)
Deprecated: Use ConnectionOwner.ProtoReflect.Descriptor instead.
func (*ConnectionOwner) GetAndroidPackageName ¶
func (x *ConnectionOwner) GetAndroidPackageName() string
func (*ConnectionOwner) GetProcessPath ¶
func (x *ConnectionOwner) GetProcessPath() string
func (*ConnectionOwner) GetUserId ¶
func (x *ConnectionOwner) GetUserId() int32
func (*ConnectionOwner) GetUserName ¶
func (x *ConnectionOwner) GetUserName() string
func (*ConnectionOwner) ProtoMessage ¶
func (*ConnectionOwner) ProtoMessage()
func (*ConnectionOwner) ProtoReflect ¶
func (x *ConnectionOwner) ProtoReflect() protoreflect.Message
func (*ConnectionOwner) Reset ¶
func (x *ConnectionOwner) Reset()
func (*ConnectionOwner) String ¶
func (x *ConnectionOwner) String() string
type ConnectionSortBy ¶
type ConnectionSortBy int32
const ( ConnectionSortBy_DATE ConnectionSortBy = 0 ConnectionSortBy_TRAFFIC ConnectionSortBy = 1 ConnectionSortBy_TOTAL_TRAFFIC ConnectionSortBy = 2 )
func (ConnectionSortBy) Descriptor ¶
func (ConnectionSortBy) Descriptor() protoreflect.EnumDescriptor
func (ConnectionSortBy) Enum ¶
func (x ConnectionSortBy) Enum() *ConnectionSortBy
func (ConnectionSortBy) EnumDescriptor
deprecated
func (ConnectionSortBy) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConnectionSortBy.Descriptor instead.
func (ConnectionSortBy) Number ¶
func (x ConnectionSortBy) Number() protoreflect.EnumNumber
func (ConnectionSortBy) String ¶
func (x ConnectionSortBy) String() string
func (ConnectionSortBy) Type ¶
func (ConnectionSortBy) Type() protoreflect.EnumType
type Connections ¶
type Connections struct {
Connections []*Connection `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
// contains filtered or unexported fields
}
func (*Connections) Descriptor
deprecated
func (*Connections) Descriptor() ([]byte, []int)
Deprecated: Use Connections.ProtoReflect.Descriptor instead.
func (*Connections) GetConnections ¶
func (x *Connections) GetConnections() []*Connection
func (*Connections) ProtoMessage ¶
func (*Connections) ProtoMessage()
func (*Connections) ProtoReflect ¶
func (x *Connections) ProtoReflect() protoreflect.Message
func (*Connections) Reset ¶
func (x *Connections) Reset()
func (*Connections) String ¶
func (x *Connections) String() string
type DefaultLogLevel ¶
type DefaultLogLevel struct {
Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=daemon.LogLevel" json:"level,omitempty"`
// contains filtered or unexported fields
}
func (*DefaultLogLevel) Descriptor
deprecated
func (*DefaultLogLevel) Descriptor() ([]byte, []int)
Deprecated: Use DefaultLogLevel.ProtoReflect.Descriptor instead.
func (*DefaultLogLevel) GetLevel ¶
func (x *DefaultLogLevel) GetLevel() LogLevel
func (*DefaultLogLevel) ProtoMessage ¶
func (*DefaultLogLevel) ProtoMessage()
func (*DefaultLogLevel) ProtoReflect ¶
func (x *DefaultLogLevel) ProtoReflect() protoreflect.Message
func (*DefaultLogLevel) Reset ¶
func (x *DefaultLogLevel) Reset()
func (*DefaultLogLevel) String ¶
func (x *DefaultLogLevel) String() string
type DeprecatedWarning ¶
type DeprecatedWarning struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Impending bool `protobuf:"varint,2,opt,name=impending,proto3" json:"impending,omitempty"`
MigrationLink string `protobuf:"bytes,3,opt,name=migrationLink,proto3" json:"migrationLink,omitempty"`
// contains filtered or unexported fields
}
func (*DeprecatedWarning) Descriptor
deprecated
func (*DeprecatedWarning) Descriptor() ([]byte, []int)
Deprecated: Use DeprecatedWarning.ProtoReflect.Descriptor instead.
func (*DeprecatedWarning) GetImpending ¶
func (x *DeprecatedWarning) GetImpending() bool
func (*DeprecatedWarning) GetMessage ¶
func (x *DeprecatedWarning) GetMessage() string
func (*DeprecatedWarning) GetMigrationLink ¶
func (x *DeprecatedWarning) GetMigrationLink() string
func (*DeprecatedWarning) ProtoMessage ¶
func (*DeprecatedWarning) ProtoMessage()
func (*DeprecatedWarning) ProtoReflect ¶
func (x *DeprecatedWarning) ProtoReflect() protoreflect.Message
func (*DeprecatedWarning) Reset ¶
func (x *DeprecatedWarning) Reset()
func (*DeprecatedWarning) String ¶
func (x *DeprecatedWarning) String() string
type DeprecatedWarnings ¶
type DeprecatedWarnings struct {
Warnings []*DeprecatedWarning `protobuf:"bytes,1,rep,name=warnings,proto3" json:"warnings,omitempty"`
// contains filtered or unexported fields
}
func (*DeprecatedWarnings) Descriptor
deprecated
func (*DeprecatedWarnings) Descriptor() ([]byte, []int)
Deprecated: Use DeprecatedWarnings.ProtoReflect.Descriptor instead.
func (*DeprecatedWarnings) GetWarnings ¶
func (x *DeprecatedWarnings) GetWarnings() []*DeprecatedWarning
func (*DeprecatedWarnings) ProtoMessage ¶
func (*DeprecatedWarnings) ProtoMessage()
func (*DeprecatedWarnings) ProtoReflect ¶
func (x *DeprecatedWarnings) ProtoReflect() protoreflect.Message
func (*DeprecatedWarnings) Reset ¶
func (x *DeprecatedWarnings) Reset()
func (*DeprecatedWarnings) String ¶
func (x *DeprecatedWarnings) String() string
type FindConnectionOwnerRequest ¶
type FindConnectionOwnerRequest struct {
IpProtocol int32 `protobuf:"varint,1,opt,name=ipProtocol,proto3" json:"ipProtocol,omitempty"`
SourceAddress string `protobuf:"bytes,2,opt,name=sourceAddress,proto3" json:"sourceAddress,omitempty"`
SourcePort int32 `protobuf:"varint,3,opt,name=sourcePort,proto3" json:"sourcePort,omitempty"`
DestinationAddress string `protobuf:"bytes,4,opt,name=destinationAddress,proto3" json:"destinationAddress,omitempty"`
DestinationPort int32 `protobuf:"varint,5,opt,name=destinationPort,proto3" json:"destinationPort,omitempty"`
// contains filtered or unexported fields
}
func (*FindConnectionOwnerRequest) Descriptor
deprecated
func (*FindConnectionOwnerRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindConnectionOwnerRequest.ProtoReflect.Descriptor instead.
func (*FindConnectionOwnerRequest) GetDestinationAddress ¶
func (x *FindConnectionOwnerRequest) GetDestinationAddress() string
func (*FindConnectionOwnerRequest) GetDestinationPort ¶
func (x *FindConnectionOwnerRequest) GetDestinationPort() int32
func (*FindConnectionOwnerRequest) GetIpProtocol ¶
func (x *FindConnectionOwnerRequest) GetIpProtocol() int32
func (*FindConnectionOwnerRequest) GetSourceAddress ¶
func (x *FindConnectionOwnerRequest) GetSourceAddress() string
func (*FindConnectionOwnerRequest) GetSourcePort ¶
func (x *FindConnectionOwnerRequest) GetSourcePort() int32
func (*FindConnectionOwnerRequest) ProtoMessage ¶
func (*FindConnectionOwnerRequest) ProtoMessage()
func (*FindConnectionOwnerRequest) ProtoReflect ¶
func (x *FindConnectionOwnerRequest) ProtoReflect() protoreflect.Message
func (*FindConnectionOwnerRequest) Reset ¶
func (x *FindConnectionOwnerRequest) Reset()
func (*FindConnectionOwnerRequest) String ¶
func (x *FindConnectionOwnerRequest) String() string
type Group ¶
type Group struct {
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Selectable bool `protobuf:"varint,3,opt,name=selectable,proto3" json:"selectable,omitempty"`
Selected string `protobuf:"bytes,4,opt,name=selected,proto3" json:"selected,omitempty"`
IsExpand bool `protobuf:"varint,5,opt,name=isExpand,proto3" json:"isExpand,omitempty"`
Items []*GroupItem `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*Group) Descriptor
deprecated
func (*Group) GetIsExpand ¶
func (*Group) GetSelectable ¶
func (*Group) GetSelected ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupItem ¶
type GroupItem struct {
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
UrlTestTime int64 `protobuf:"varint,3,opt,name=urlTestTime,proto3" json:"urlTestTime,omitempty"`
UrlTestDelay int32 `protobuf:"varint,4,opt,name=urlTestDelay,proto3" json:"urlTestDelay,omitempty"`
// contains filtered or unexported fields
}
func (*GroupItem) Descriptor
deprecated
func (*GroupItem) GetUrlTestDelay ¶
func (*GroupItem) GetUrlTestTime ¶
func (*GroupItem) ProtoMessage ¶
func (*GroupItem) ProtoMessage()
func (*GroupItem) ProtoReflect ¶
func (x *GroupItem) ProtoReflect() protoreflect.Message
type Groups ¶
type Groups struct {
Group []*Group `protobuf:"bytes,1,rep,name=group,proto3" json:"group,omitempty"`
// contains filtered or unexported fields
}
func (*Groups) Descriptor
deprecated
func (*Groups) ProtoMessage ¶
func (*Groups) ProtoMessage()
func (*Groups) ProtoReflect ¶
func (x *Groups) ProtoReflect() protoreflect.Message
type HelperRequest ¶
type HelperRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to Request:
//
// *HelperRequest_GetWIFIState
// *HelperRequest_FindConnectionOwner
// *HelperRequest_SendNotification
Request isHelperRequest_Request `protobuf_oneof:"request"`
// contains filtered or unexported fields
}
func (*HelperRequest) Descriptor
deprecated
func (*HelperRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelperRequest.ProtoReflect.Descriptor instead.
func (*HelperRequest) GetFindConnectionOwner ¶
func (x *HelperRequest) GetFindConnectionOwner() *FindConnectionOwnerRequest
func (*HelperRequest) GetGetWIFIState ¶
func (x *HelperRequest) GetGetWIFIState() *emptypb.Empty
func (*HelperRequest) GetId ¶
func (x *HelperRequest) GetId() int64
func (*HelperRequest) GetRequest ¶
func (x *HelperRequest) GetRequest() isHelperRequest_Request
func (*HelperRequest) GetSendNotification ¶
func (x *HelperRequest) GetSendNotification() *Notification
func (*HelperRequest) ProtoMessage ¶
func (*HelperRequest) ProtoMessage()
func (*HelperRequest) ProtoReflect ¶
func (x *HelperRequest) ProtoReflect() protoreflect.Message
func (*HelperRequest) Reset ¶
func (x *HelperRequest) Reset()
func (*HelperRequest) String ¶
func (x *HelperRequest) String() string
type HelperRequest_FindConnectionOwner ¶
type HelperRequest_FindConnectionOwner struct {
FindConnectionOwner *FindConnectionOwnerRequest `protobuf:"bytes,3,opt,name=findConnectionOwner,proto3,oneof"`
}
type HelperRequest_SendNotification ¶
type HelperRequest_SendNotification struct {
SendNotification *Notification `protobuf:"bytes,4,opt,name=sendNotification,proto3,oneof"`
}
type HelperResponse ¶
type HelperResponse struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to Response:
//
// *HelperResponse_WifiState
// *HelperResponse_Error
// *HelperResponse_ConnectionOwner
Response isHelperResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*HelperResponse) Descriptor
deprecated
func (*HelperResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelperResponse.ProtoReflect.Descriptor instead.
func (*HelperResponse) GetConnectionOwner ¶
func (x *HelperResponse) GetConnectionOwner() *ConnectionOwner
func (*HelperResponse) GetError ¶
func (x *HelperResponse) GetError() string
func (*HelperResponse) GetId ¶
func (x *HelperResponse) GetId() int64
func (*HelperResponse) GetResponse ¶
func (x *HelperResponse) GetResponse() isHelperResponse_Response
func (*HelperResponse) GetWifiState ¶
func (x *HelperResponse) GetWifiState() *WIFIState
func (*HelperResponse) ProtoMessage ¶
func (*HelperResponse) ProtoMessage()
func (*HelperResponse) ProtoReflect ¶
func (x *HelperResponse) ProtoReflect() protoreflect.Message
func (*HelperResponse) Reset ¶
func (x *HelperResponse) Reset()
func (*HelperResponse) String ¶
func (x *HelperResponse) String() string
type HelperResponse_ConnectionOwner ¶
type HelperResponse_ConnectionOwner struct {
ConnectionOwner *ConnectionOwner `protobuf:"bytes,4,opt,name=connectionOwner,proto3,oneof"`
}
type HelperResponse_Error ¶
type HelperResponse_Error struct {
Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}
type HelperResponse_WifiState ¶
type HelperResponse_WifiState struct {
WifiState *WIFIState `protobuf:"bytes,2,opt,name=wifiState,proto3,oneof"`
}
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) PauseManager ¶
type Log ¶
type Log struct {
Messages []*Log_Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
// contains filtered or unexported fields
}
func (*Log) Descriptor
deprecated
func (*Log) GetMessages ¶
func (x *Log) GetMessages() []*Log_Message
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type LogLevel ¶
type LogLevel int32
func (LogLevel) Descriptor ¶
func (LogLevel) Descriptor() protoreflect.EnumDescriptor
func (LogLevel) EnumDescriptor
deprecated
func (LogLevel) Number ¶
func (x LogLevel) Number() protoreflect.EnumNumber
func (LogLevel) Type ¶
func (LogLevel) Type() protoreflect.EnumType
type Log_Message ¶
type Log_Message struct {
Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=daemon.LogLevel" json:"level,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Log_Message) Descriptor
deprecated
func (*Log_Message) Descriptor() ([]byte, []int)
Deprecated: Use Log_Message.ProtoReflect.Descriptor instead.
func (*Log_Message) GetLevel ¶
func (x *Log_Message) GetLevel() LogLevel
func (*Log_Message) GetMessage ¶
func (x *Log_Message) GetMessage() string
func (*Log_Message) ProtoMessage ¶
func (*Log_Message) ProtoMessage()
func (*Log_Message) ProtoReflect ¶
func (x *Log_Message) ProtoReflect() protoreflect.Message
func (*Log_Message) Reset ¶
func (x *Log_Message) Reset()
func (*Log_Message) String ¶
func (x *Log_Message) String() string
type Notification ¶
type Notification struct {
Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
TypeName string `protobuf:"bytes,2,opt,name=typeName,proto3" json:"typeName,omitempty"`
TypeId int32 `protobuf:"varint,3,opt,name=typeId,proto3" json:"typeId,omitempty"`
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
Subtitle string `protobuf:"bytes,5,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
OpenURL string `protobuf:"bytes,7,opt,name=openURL,proto3" json:"openURL,omitempty"`
// contains filtered or unexported fields
}
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetBody ¶
func (x *Notification) GetBody() string
func (*Notification) GetIdentifier ¶
func (x *Notification) GetIdentifier() string
func (*Notification) GetOpenURL ¶
func (x *Notification) GetOpenURL() string
func (*Notification) GetSubtitle ¶
func (x *Notification) GetSubtitle() string
func (*Notification) GetTitle ¶
func (x *Notification) GetTitle() string
func (*Notification) GetTypeId ¶
func (x *Notification) GetTypeId() int32
func (*Notification) GetTypeName ¶
func (x *Notification) GetTypeName() string
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) String ¶
func (x *Notification) String() string
type OverrideOptions ¶
type PlatformHandler ¶
type ProcessInfo ¶
type ProcessInfo struct {
ProcessId uint32 `protobuf:"varint,1,opt,name=processId,proto3" json:"processId,omitempty"`
UserId int32 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
UserName string `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"`
ProcessPath string `protobuf:"bytes,4,opt,name=processPath,proto3" json:"processPath,omitempty"`
PackageName string `protobuf:"bytes,5,opt,name=packageName,proto3" json:"packageName,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessInfo) Descriptor
deprecated
func (*ProcessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProcessInfo.ProtoReflect.Descriptor instead.
func (*ProcessInfo) GetPackageName ¶
func (x *ProcessInfo) GetPackageName() string
func (*ProcessInfo) GetProcessId ¶
func (x *ProcessInfo) GetProcessId() uint32
func (*ProcessInfo) GetProcessPath ¶
func (x *ProcessInfo) GetProcessPath() string
func (*ProcessInfo) GetUserId ¶
func (x *ProcessInfo) GetUserId() int32
func (*ProcessInfo) GetUserName ¶
func (x *ProcessInfo) GetUserName() string
func (*ProcessInfo) ProtoMessage ¶
func (*ProcessInfo) ProtoMessage()
func (*ProcessInfo) ProtoReflect ¶
func (x *ProcessInfo) ProtoReflect() protoreflect.Message
func (*ProcessInfo) Reset ¶
func (x *ProcessInfo) Reset()
func (*ProcessInfo) String ¶
func (x *ProcessInfo) String() string
type ReloadServiceRequest ¶
type ReloadServiceRequest struct {
NewProfileContent string `protobuf:"bytes,1,opt,name=newProfileContent,proto3" json:"newProfileContent,omitempty"`
// contains filtered or unexported fields
}
func (*ReloadServiceRequest) Descriptor
deprecated
func (*ReloadServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReloadServiceRequest.ProtoReflect.Descriptor instead.
func (*ReloadServiceRequest) GetNewProfileContent ¶
func (x *ReloadServiceRequest) GetNewProfileContent() string
func (*ReloadServiceRequest) ProtoMessage ¶
func (*ReloadServiceRequest) ProtoMessage()
func (*ReloadServiceRequest) ProtoReflect ¶
func (x *ReloadServiceRequest) ProtoReflect() protoreflect.Message
func (*ReloadServiceRequest) Reset ¶
func (x *ReloadServiceRequest) Reset()
func (*ReloadServiceRequest) String ¶
func (x *ReloadServiceRequest) String() string
type SelectOutboundRequest ¶
type SelectOutboundRequest struct {
GroupTag string `protobuf:"bytes,1,opt,name=groupTag,proto3" json:"groupTag,omitempty"`
OutboundTag string `protobuf:"bytes,2,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
// contains filtered or unexported fields
}
func (*SelectOutboundRequest) Descriptor
deprecated
func (*SelectOutboundRequest) Descriptor() ([]byte, []int)
Deprecated: Use SelectOutboundRequest.ProtoReflect.Descriptor instead.
func (*SelectOutboundRequest) GetGroupTag ¶
func (x *SelectOutboundRequest) GetGroupTag() string
func (*SelectOutboundRequest) GetOutboundTag ¶
func (x *SelectOutboundRequest) GetOutboundTag() string
func (*SelectOutboundRequest) ProtoMessage ¶
func (*SelectOutboundRequest) ProtoMessage()
func (*SelectOutboundRequest) ProtoReflect ¶
func (x *SelectOutboundRequest) ProtoReflect() protoreflect.Message
func (*SelectOutboundRequest) Reset ¶
func (x *SelectOutboundRequest) Reset()
func (*SelectOutboundRequest) String ¶
func (x *SelectOutboundRequest) String() string
type ServiceOptions ¶
type ServiceOptions struct {
Context context.Context
// Platform adapter.PlatformInterface
Handler PlatformHandler
Debug bool
LogMaxLines int
}
type ServiceStatus ¶
type ServiceStatus struct {
Status ServiceStatus_Type `protobuf:"varint,1,opt,name=status,proto3,enum=daemon.ServiceStatus_Type" json:"status,omitempty"`
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
// contains filtered or unexported fields
}
func (*ServiceStatus) Descriptor
deprecated
func (*ServiceStatus) Descriptor() ([]byte, []int)
Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead.
func (*ServiceStatus) GetErrorMessage ¶
func (x *ServiceStatus) GetErrorMessage() string
func (*ServiceStatus) GetStatus ¶
func (x *ServiceStatus) GetStatus() ServiceStatus_Type
func (*ServiceStatus) ProtoMessage ¶
func (*ServiceStatus) ProtoMessage()
func (*ServiceStatus) ProtoReflect ¶
func (x *ServiceStatus) ProtoReflect() protoreflect.Message
func (*ServiceStatus) Reset ¶
func (x *ServiceStatus) Reset()
func (*ServiceStatus) String ¶
func (x *ServiceStatus) String() string
type ServiceStatus_Type ¶
type ServiceStatus_Type int32
const ( ServiceStatus_IDLE ServiceStatus_Type = 0 ServiceStatus_STARTING ServiceStatus_Type = 1 ServiceStatus_STARTED ServiceStatus_Type = 2 ServiceStatus_STOPPING ServiceStatus_Type = 3 ServiceStatus_FATAL ServiceStatus_Type = 4 )
func (ServiceStatus_Type) Descriptor ¶
func (ServiceStatus_Type) Descriptor() protoreflect.EnumDescriptor
func (ServiceStatus_Type) Enum ¶
func (x ServiceStatus_Type) Enum() *ServiceStatus_Type
func (ServiceStatus_Type) EnumDescriptor
deprecated
func (ServiceStatus_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceStatus_Type.Descriptor instead.
func (ServiceStatus_Type) Number ¶
func (x ServiceStatus_Type) Number() protoreflect.EnumNumber
func (ServiceStatus_Type) String ¶
func (x ServiceStatus_Type) String() string
func (ServiceStatus_Type) Type ¶
func (ServiceStatus_Type) Type() protoreflect.EnumType
type SetGroupExpandRequest ¶
type SetGroupExpandRequest struct {
GroupTag string `protobuf:"bytes,1,opt,name=groupTag,proto3" json:"groupTag,omitempty"`
IsExpand bool `protobuf:"varint,2,opt,name=isExpand,proto3" json:"isExpand,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupExpandRequest) Descriptor
deprecated
func (*SetGroupExpandRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupExpandRequest.ProtoReflect.Descriptor instead.
func (*SetGroupExpandRequest) GetGroupTag ¶
func (x *SetGroupExpandRequest) GetGroupTag() string
func (*SetGroupExpandRequest) GetIsExpand ¶
func (x *SetGroupExpandRequest) GetIsExpand() bool
func (*SetGroupExpandRequest) ProtoMessage ¶
func (*SetGroupExpandRequest) ProtoMessage()
func (*SetGroupExpandRequest) ProtoReflect ¶
func (x *SetGroupExpandRequest) ProtoReflect() protoreflect.Message
func (*SetGroupExpandRequest) Reset ¶
func (x *SetGroupExpandRequest) Reset()
func (*SetGroupExpandRequest) String ¶
func (x *SetGroupExpandRequest) String() string
type SetSystemProxyEnabledRequest ¶
type SetSystemProxyEnabledRequest struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// contains filtered or unexported fields
}
func (*SetSystemProxyEnabledRequest) Descriptor
deprecated
func (*SetSystemProxyEnabledRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetSystemProxyEnabledRequest.ProtoReflect.Descriptor instead.
func (*SetSystemProxyEnabledRequest) GetEnabled ¶
func (x *SetSystemProxyEnabledRequest) GetEnabled() bool
func (*SetSystemProxyEnabledRequest) ProtoMessage ¶
func (*SetSystemProxyEnabledRequest) ProtoMessage()
func (*SetSystemProxyEnabledRequest) ProtoReflect ¶
func (x *SetSystemProxyEnabledRequest) ProtoReflect() protoreflect.Message
func (*SetSystemProxyEnabledRequest) Reset ¶
func (x *SetSystemProxyEnabledRequest) Reset()
func (*SetSystemProxyEnabledRequest) String ¶
func (x *SetSystemProxyEnabledRequest) String() string
type StartedAt ¶
type StartedAt struct {
StartedAt int64 `protobuf:"varint,1,opt,name=startedAt,proto3" json:"startedAt,omitempty"`
// contains filtered or unexported fields
}
func (*StartedAt) Descriptor
deprecated
func (*StartedAt) GetStartedAt ¶
func (*StartedAt) ProtoMessage ¶
func (*StartedAt) ProtoMessage()
func (*StartedAt) ProtoReflect ¶
func (x *StartedAt) ProtoReflect() protoreflect.Message
type StartedService ¶
type StartedService struct {
// contains filtered or unexported fields
}
func NewStartedService ¶
func NewStartedService(options ServiceOptions) *StartedService
func (*StartedService) CheckConfig ¶
func (s *StartedService) CheckConfig(configContent string) error
func (*StartedService) CloseAllConnections ¶
func (*StartedService) CloseConnection ¶
func (s *StartedService) CloseConnection(ctx context.Context, request *CloseConnectionRequest) (*emptypb.Empty, error)
func (*StartedService) CloseService ¶
func (s *StartedService) CloseService() error
func (*StartedService) FormatConfig ¶
func (s *StartedService) FormatConfig(configContent string) (string, error)
func (*StartedService) GetClashModeStatus ¶
func (s *StartedService) GetClashModeStatus(ctx context.Context, empty *emptypb.Empty) (*ClashModeStatus, error)
func (*StartedService) GetDefaultLogLevel ¶
func (s *StartedService) GetDefaultLogLevel(ctx context.Context, empty *emptypb.Empty) (*DefaultLogLevel, error)
func (*StartedService) GetDeprecatedWarnings ¶
func (s *StartedService) GetDeprecatedWarnings(ctx context.Context, empty *emptypb.Empty) (*DeprecatedWarnings, error)
func (*StartedService) GetStartedAt ¶
func (*StartedService) GetSystemProxyStatus ¶
func (s *StartedService) GetSystemProxyStatus(ctx context.Context, empty *emptypb.Empty) (*SystemProxyStatus, error)
func (*StartedService) Instance ¶
func (s *StartedService) Instance() *Instance
func (*StartedService) ReloadService ¶
func (*StartedService) SelectOutbound ¶
func (s *StartedService) SelectOutbound(ctx context.Context, request *SelectOutboundRequest) (*emptypb.Empty, error)
func (*StartedService) SendHelperResponse ¶
func (s *StartedService) SendHelperResponse(ctx context.Context, response *HelperResponse) (*emptypb.Empty, error)
func (*StartedService) SetClashMode ¶
func (*StartedService) SetError ¶
func (s *StartedService) SetError(err error)
func (*StartedService) SetGroupExpand ¶
func (s *StartedService) SetGroupExpand(ctx context.Context, request *SetGroupExpandRequest) (*emptypb.Empty, error)
func (*StartedService) SetSystemProxyEnabled ¶
func (s *StartedService) SetSystemProxyEnabled(ctx context.Context, request *SetSystemProxyEnabledRequest) (*emptypb.Empty, error)
func (*StartedService) StartOrReloadService ¶
func (s *StartedService) StartOrReloadService(profileContent string, options *OverrideOptions) error
func (*StartedService) StopService ¶
func (*StartedService) SubscribeClashMode ¶
func (s *StartedService) SubscribeClashMode(empty *emptypb.Empty, server grpc.ServerStreamingServer[ClashMode]) error
func (*StartedService) SubscribeConnections ¶
func (s *StartedService) SubscribeConnections(request *SubscribeConnectionsRequest, server grpc.ServerStreamingServer[Connections]) error
func (*StartedService) SubscribeGroups ¶
func (s *StartedService) SubscribeGroups(empty *emptypb.Empty, server grpc.ServerStreamingServer[Groups]) error
func (*StartedService) SubscribeHelperEvents ¶
func (s *StartedService) SubscribeHelperEvents(empty *emptypb.Empty, server grpc.ServerStreamingServer[HelperRequest]) error
func (*StartedService) SubscribeLog ¶
func (s *StartedService) SubscribeLog(empty *emptypb.Empty, server grpc.ServerStreamingServer[Log]) error
func (*StartedService) SubscribeServiceStatus ¶
func (s *StartedService) SubscribeServiceStatus(empty *emptypb.Empty, server grpc.ServerStreamingServer[ServiceStatus]) error
func (*StartedService) SubscribeStatus ¶
func (s *StartedService) SubscribeStatus(request *SubscribeStatusRequest, server grpc.ServerStreamingServer[Status]) error
func (*StartedService) URLTest ¶
func (s *StartedService) URLTest(ctx context.Context, request *URLTestRequest) (*emptypb.Empty, error)
func (*StartedService) WriteMessage ¶
func (s *StartedService) WriteMessage(level log.Level, message string)
type StartedServiceClient ¶
type StartedServiceClient interface {
StopService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
ReloadService(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
SubscribeServiceStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ServiceStatus], error)
SubscribeLog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Log], error)
GetDefaultLogLevel(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DefaultLogLevel, error)
ClearLogs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
SubscribeStatus(ctx context.Context, in *SubscribeStatusRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Status], error)
SubscribeGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Groups], error)
GetClashModeStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClashModeStatus, error)
SubscribeClashMode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ClashMode], error)
SetClashMode(ctx context.Context, in *ClashMode, opts ...grpc.CallOption) (*emptypb.Empty, error)
URLTest(ctx context.Context, in *URLTestRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
SelectOutbound(ctx context.Context, in *SelectOutboundRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
SetGroupExpand(ctx context.Context, in *SetGroupExpandRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetSystemProxyStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SystemProxyStatus, error)
SetSystemProxyEnabled(ctx context.Context, in *SetSystemProxyEnabledRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
SubscribeConnections(ctx context.Context, in *SubscribeConnectionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Connections], error)
CloseConnection(ctx context.Context, in *CloseConnectionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
CloseAllConnections(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetDeprecatedWarnings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DeprecatedWarnings, error)
GetStartedAt(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StartedAt, error)
SubscribeHelperEvents(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HelperRequest], error)
SendHelperResponse(ctx context.Context, in *HelperResponse, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
StartedServiceClient is the client API for StartedService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStartedServiceClient ¶
func NewStartedServiceClient(cc grpc.ClientConnInterface) StartedServiceClient
type StartedServiceServer ¶
type StartedServiceServer interface {
StopService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
ReloadService(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
SubscribeServiceStatus(*emptypb.Empty, grpc.ServerStreamingServer[ServiceStatus]) error
SubscribeLog(*emptypb.Empty, grpc.ServerStreamingServer[Log]) error
GetDefaultLogLevel(context.Context, *emptypb.Empty) (*DefaultLogLevel, error)
ClearLogs(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
SubscribeStatus(*SubscribeStatusRequest, grpc.ServerStreamingServer[Status]) error
SubscribeGroups(*emptypb.Empty, grpc.ServerStreamingServer[Groups]) error
GetClashModeStatus(context.Context, *emptypb.Empty) (*ClashModeStatus, error)
SubscribeClashMode(*emptypb.Empty, grpc.ServerStreamingServer[ClashMode]) error
SetClashMode(context.Context, *ClashMode) (*emptypb.Empty, error)
URLTest(context.Context, *URLTestRequest) (*emptypb.Empty, error)
SelectOutbound(context.Context, *SelectOutboundRequest) (*emptypb.Empty, error)
SetGroupExpand(context.Context, *SetGroupExpandRequest) (*emptypb.Empty, error)
GetSystemProxyStatus(context.Context, *emptypb.Empty) (*SystemProxyStatus, error)
SetSystemProxyEnabled(context.Context, *SetSystemProxyEnabledRequest) (*emptypb.Empty, error)
SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[Connections]) error
CloseConnection(context.Context, *CloseConnectionRequest) (*emptypb.Empty, error)
CloseAllConnections(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
GetDeprecatedWarnings(context.Context, *emptypb.Empty) (*DeprecatedWarnings, error)
GetStartedAt(context.Context, *emptypb.Empty) (*StartedAt, error)
SubscribeHelperEvents(*emptypb.Empty, grpc.ServerStreamingServer[HelperRequest]) error
SendHelperResponse(context.Context, *HelperResponse) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
StartedServiceServer is the server API for StartedService service. All implementations must embed UnimplementedStartedServiceServer for forward compatibility.
type StartedService_SubscribeClashModeClient ¶
type StartedService_SubscribeClashModeClient = grpc.ServerStreamingClient[ClashMode]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeClashModeServer ¶
type StartedService_SubscribeClashModeServer = grpc.ServerStreamingServer[ClashMode]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeConnectionsClient ¶
type StartedService_SubscribeConnectionsClient = grpc.ServerStreamingClient[Connections]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeConnectionsServer ¶
type StartedService_SubscribeConnectionsServer = grpc.ServerStreamingServer[Connections]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeGroupsClient ¶
type StartedService_SubscribeGroupsClient = grpc.ServerStreamingClient[Groups]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeGroupsServer ¶
type StartedService_SubscribeGroupsServer = grpc.ServerStreamingServer[Groups]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeHelperEventsClient ¶
type StartedService_SubscribeHelperEventsClient = grpc.ServerStreamingClient[HelperRequest]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeHelperEventsServer ¶
type StartedService_SubscribeHelperEventsServer = grpc.ServerStreamingServer[HelperRequest]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeLogClient ¶
type StartedService_SubscribeLogClient = grpc.ServerStreamingClient[Log]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeLogServer ¶
type StartedService_SubscribeLogServer = grpc.ServerStreamingServer[Log]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeServiceStatusClient ¶
type StartedService_SubscribeServiceStatusClient = grpc.ServerStreamingClient[ServiceStatus]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeServiceStatusServer ¶
type StartedService_SubscribeServiceStatusServer = grpc.ServerStreamingServer[ServiceStatus]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeStatusClient ¶
type StartedService_SubscribeStatusClient = grpc.ServerStreamingClient[Status]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type StartedService_SubscribeStatusServer ¶
type StartedService_SubscribeStatusServer = grpc.ServerStreamingServer[Status]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Status ¶
type Status struct {
Memory uint64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"`
Goroutines int32 `protobuf:"varint,2,opt,name=goroutines,proto3" json:"goroutines,omitempty"`
ConnectionsIn int32 `protobuf:"varint,3,opt,name=connectionsIn,proto3" json:"connectionsIn,omitempty"`
ConnectionsOut int32 `protobuf:"varint,4,opt,name=connectionsOut,proto3" json:"connectionsOut,omitempty"`
TrafficAvailable bool `protobuf:"varint,5,opt,name=trafficAvailable,proto3" json:"trafficAvailable,omitempty"`
Uplink int64 `protobuf:"varint,6,opt,name=uplink,proto3" json:"uplink,omitempty"`
Downlink int64 `protobuf:"varint,7,opt,name=downlink,proto3" json:"downlink,omitempty"`
UplinkTotal int64 `protobuf:"varint,8,opt,name=uplinkTotal,proto3" json:"uplinkTotal,omitempty"`
DownlinkTotal int64 `protobuf:"varint,9,opt,name=downlinkTotal,proto3" json:"downlinkTotal,omitempty"`
// contains filtered or unexported fields
}
func (*Status) Descriptor
deprecated
func (*Status) GetConnectionsIn ¶
func (*Status) GetConnectionsOut ¶
func (*Status) GetDownlink ¶
func (*Status) GetDownlinkTotal ¶
func (*Status) GetGoroutines ¶
func (*Status) GetTrafficAvailable ¶
func (*Status) GetUplinkTotal ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type SubscribeConnectionsRequest ¶
type SubscribeConnectionsRequest struct {
Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
Filter ConnectionFilter `protobuf:"varint,2,opt,name=filter,proto3,enum=daemon.ConnectionFilter" json:"filter,omitempty"`
SortBy ConnectionSortBy `protobuf:"varint,3,opt,name=sortBy,proto3,enum=daemon.ConnectionSortBy" json:"sortBy,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeConnectionsRequest) Descriptor
deprecated
func (*SubscribeConnectionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeConnectionsRequest.ProtoReflect.Descriptor instead.
func (*SubscribeConnectionsRequest) GetFilter ¶
func (x *SubscribeConnectionsRequest) GetFilter() ConnectionFilter
func (*SubscribeConnectionsRequest) GetInterval ¶
func (x *SubscribeConnectionsRequest) GetInterval() int64
func (*SubscribeConnectionsRequest) GetSortBy ¶
func (x *SubscribeConnectionsRequest) GetSortBy() ConnectionSortBy
func (*SubscribeConnectionsRequest) ProtoMessage ¶
func (*SubscribeConnectionsRequest) ProtoMessage()
func (*SubscribeConnectionsRequest) ProtoReflect ¶
func (x *SubscribeConnectionsRequest) ProtoReflect() protoreflect.Message
func (*SubscribeConnectionsRequest) Reset ¶
func (x *SubscribeConnectionsRequest) Reset()
func (*SubscribeConnectionsRequest) String ¶
func (x *SubscribeConnectionsRequest) String() string
type SubscribeHelperRequestRequest ¶
type SubscribeHelperRequestRequest struct {
AcceptGetWIFIStateRequests bool `protobuf:"varint,1,opt,name=acceptGetWIFIStateRequests,proto3" json:"acceptGetWIFIStateRequests,omitempty"`
AcceptFindConnectionOwnerRequests bool `protobuf:"varint,2,opt,name=acceptFindConnectionOwnerRequests,proto3" json:"acceptFindConnectionOwnerRequests,omitempty"`
AcceptSendNotificationRequests bool `protobuf:"varint,3,opt,name=acceptSendNotificationRequests,proto3" json:"acceptSendNotificationRequests,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeHelperRequestRequest) Descriptor
deprecated
func (*SubscribeHelperRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeHelperRequestRequest.ProtoReflect.Descriptor instead.
func (*SubscribeHelperRequestRequest) GetAcceptFindConnectionOwnerRequests ¶
func (x *SubscribeHelperRequestRequest) GetAcceptFindConnectionOwnerRequests() bool
func (*SubscribeHelperRequestRequest) GetAcceptGetWIFIStateRequests ¶
func (x *SubscribeHelperRequestRequest) GetAcceptGetWIFIStateRequests() bool
func (*SubscribeHelperRequestRequest) GetAcceptSendNotificationRequests ¶
func (x *SubscribeHelperRequestRequest) GetAcceptSendNotificationRequests() bool
func (*SubscribeHelperRequestRequest) ProtoMessage ¶
func (*SubscribeHelperRequestRequest) ProtoMessage()
func (*SubscribeHelperRequestRequest) ProtoReflect ¶
func (x *SubscribeHelperRequestRequest) ProtoReflect() protoreflect.Message
func (*SubscribeHelperRequestRequest) Reset ¶
func (x *SubscribeHelperRequestRequest) Reset()
func (*SubscribeHelperRequestRequest) String ¶
func (x *SubscribeHelperRequestRequest) String() string
type SubscribeStatusRequest ¶
type SubscribeStatusRequest struct {
Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
// contains filtered or unexported fields
}
func (*SubscribeStatusRequest) Descriptor
deprecated
func (*SubscribeStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeStatusRequest.ProtoReflect.Descriptor instead.
func (*SubscribeStatusRequest) GetInterval ¶
func (x *SubscribeStatusRequest) GetInterval() int64
func (*SubscribeStatusRequest) ProtoMessage ¶
func (*SubscribeStatusRequest) ProtoMessage()
func (*SubscribeStatusRequest) ProtoReflect ¶
func (x *SubscribeStatusRequest) ProtoReflect() protoreflect.Message
func (*SubscribeStatusRequest) Reset ¶
func (x *SubscribeStatusRequest) Reset()
func (*SubscribeStatusRequest) String ¶
func (x *SubscribeStatusRequest) String() string
type SystemProxyStatus ¶
type SystemProxyStatus struct {
Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
// contains filtered or unexported fields
}
func (*SystemProxyStatus) Descriptor
deprecated
func (*SystemProxyStatus) Descriptor() ([]byte, []int)
Deprecated: Use SystemProxyStatus.ProtoReflect.Descriptor instead.
func (*SystemProxyStatus) GetAvailable ¶
func (x *SystemProxyStatus) GetAvailable() bool
func (*SystemProxyStatus) GetEnabled ¶
func (x *SystemProxyStatus) GetEnabled() bool
func (*SystemProxyStatus) ProtoMessage ¶
func (*SystemProxyStatus) ProtoMessage()
func (*SystemProxyStatus) ProtoReflect ¶
func (x *SystemProxyStatus) ProtoReflect() protoreflect.Message
func (*SystemProxyStatus) Reset ¶
func (x *SystemProxyStatus) Reset()
func (*SystemProxyStatus) String ¶
func (x *SystemProxyStatus) String() string
type URLTestRequest ¶
type URLTestRequest struct {
OutboundTag string `protobuf:"bytes,1,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
// contains filtered or unexported fields
}
func (*URLTestRequest) Descriptor
deprecated
func (*URLTestRequest) Descriptor() ([]byte, []int)
Deprecated: Use URLTestRequest.ProtoReflect.Descriptor instead.
func (*URLTestRequest) GetOutboundTag ¶
func (x *URLTestRequest) GetOutboundTag() string
func (*URLTestRequest) ProtoMessage ¶
func (*URLTestRequest) ProtoMessage()
func (*URLTestRequest) ProtoReflect ¶
func (x *URLTestRequest) ProtoReflect() protoreflect.Message
func (*URLTestRequest) Reset ¶
func (x *URLTestRequest) Reset()
func (*URLTestRequest) String ¶
func (x *URLTestRequest) String() string
type UnimplementedStartedServiceServer ¶
type UnimplementedStartedServiceServer struct{}
UnimplementedStartedServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedStartedServiceServer) CloseAllConnections ¶
func (UnimplementedStartedServiceServer) CloseConnection ¶
func (UnimplementedStartedServiceServer) CloseConnection(context.Context, *CloseConnectionRequest) (*emptypb.Empty, error)
func (UnimplementedStartedServiceServer) GetClashModeStatus ¶
func (UnimplementedStartedServiceServer) GetClashModeStatus(context.Context, *emptypb.Empty) (*ClashModeStatus, error)
func (UnimplementedStartedServiceServer) GetDefaultLogLevel ¶
func (UnimplementedStartedServiceServer) GetDefaultLogLevel(context.Context, *emptypb.Empty) (*DefaultLogLevel, error)
func (UnimplementedStartedServiceServer) GetDeprecatedWarnings ¶
func (UnimplementedStartedServiceServer) GetDeprecatedWarnings(context.Context, *emptypb.Empty) (*DeprecatedWarnings, error)
func (UnimplementedStartedServiceServer) GetStartedAt ¶
func (UnimplementedStartedServiceServer) GetSystemProxyStatus ¶
func (UnimplementedStartedServiceServer) GetSystemProxyStatus(context.Context, *emptypb.Empty) (*SystemProxyStatus, error)
func (UnimplementedStartedServiceServer) ReloadService ¶
func (UnimplementedStartedServiceServer) SelectOutbound ¶
func (UnimplementedStartedServiceServer) SelectOutbound(context.Context, *SelectOutboundRequest) (*emptypb.Empty, error)
func (UnimplementedStartedServiceServer) SendHelperResponse ¶
func (UnimplementedStartedServiceServer) SendHelperResponse(context.Context, *HelperResponse) (*emptypb.Empty, error)
func (UnimplementedStartedServiceServer) SetClashMode ¶
func (UnimplementedStartedServiceServer) SetGroupExpand ¶
func (UnimplementedStartedServiceServer) SetGroupExpand(context.Context, *SetGroupExpandRequest) (*emptypb.Empty, error)
func (UnimplementedStartedServiceServer) SetSystemProxyEnabled ¶
func (UnimplementedStartedServiceServer) SetSystemProxyEnabled(context.Context, *SetSystemProxyEnabledRequest) (*emptypb.Empty, error)
func (UnimplementedStartedServiceServer) StopService ¶
func (UnimplementedStartedServiceServer) SubscribeClashMode ¶
func (UnimplementedStartedServiceServer) SubscribeClashMode(*emptypb.Empty, grpc.ServerStreamingServer[ClashMode]) error
func (UnimplementedStartedServiceServer) SubscribeConnections ¶
func (UnimplementedStartedServiceServer) SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[Connections]) error
func (UnimplementedStartedServiceServer) SubscribeGroups ¶
func (UnimplementedStartedServiceServer) SubscribeGroups(*emptypb.Empty, grpc.ServerStreamingServer[Groups]) error
func (UnimplementedStartedServiceServer) SubscribeHelperEvents ¶
func (UnimplementedStartedServiceServer) SubscribeHelperEvents(*emptypb.Empty, grpc.ServerStreamingServer[HelperRequest]) error
func (UnimplementedStartedServiceServer) SubscribeLog ¶
func (UnimplementedStartedServiceServer) SubscribeLog(*emptypb.Empty, grpc.ServerStreamingServer[Log]) error
func (UnimplementedStartedServiceServer) SubscribeServiceStatus ¶
func (UnimplementedStartedServiceServer) SubscribeServiceStatus(*emptypb.Empty, grpc.ServerStreamingServer[ServiceStatus]) error
func (UnimplementedStartedServiceServer) SubscribeStatus ¶
func (UnimplementedStartedServiceServer) SubscribeStatus(*SubscribeStatusRequest, grpc.ServerStreamingServer[Status]) error
func (UnimplementedStartedServiceServer) URLTest ¶
func (UnimplementedStartedServiceServer) URLTest(context.Context, *URLTestRequest) (*emptypb.Empty, error)
type UnsafeStartedServiceServer ¶
type UnsafeStartedServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStartedServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StartedServiceServer will result in compilation errors.
type WIFIState ¶
type WIFIState struct {
Ssid string `protobuf:"bytes,1,opt,name=ssid,proto3" json:"ssid,omitempty"`
Bssid string `protobuf:"bytes,2,opt,name=bssid,proto3" json:"bssid,omitempty"`
// contains filtered or unexported fields
}
func (*WIFIState) Descriptor
deprecated
func (*WIFIState) ProtoMessage ¶
func (*WIFIState) ProtoMessage()
func (*WIFIState) ProtoReflect ¶
func (x *WIFIState) ProtoReflect() protoreflect.Message