daemon

package
v1.14.0-alpha.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: GPL-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
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_TriggerDebugCrash_FullMethodName        = "/daemon.StartedService/TriggerDebugCrash"
	StartedService_TriggerOOMReport_FullMethodName         = "/daemon.StartedService/TriggerOOMReport"
	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_SubscribeOutbounds_FullMethodName       = "/daemon.StartedService/SubscribeOutbounds"
	StartedService_StartNetworkQualityTest_FullMethodName  = "/daemon.StartedService/StartNetworkQualityTest"
	StartedService_StartSTUNTest_FullMethodName            = "/daemon.StartedService/StartSTUNTest"
	StartedService_SubscribeTailscaleStatus_FullMethodName = "/daemon.StartedService/SubscribeTailscaleStatus"
	StartedService_StartTailscalePing_FullMethodName       = "/daemon.StartedService/StartTailscalePing"
)

Variables

View Source
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.

View Source
var (
	ConnectionEventType_name = map[int32]string{
		0: "CONNECTION_EVENT_NEW",
		1: "CONNECTION_EVENT_UPDATE",
		2: "CONNECTION_EVENT_CLOSED",
	}
	ConnectionEventType_value = map[string]int32{
		"CONNECTION_EVENT_NEW":    0,
		"CONNECTION_EVENT_UPDATE": 1,
		"CONNECTION_EVENT_CLOSED": 2,
	}
)

Enum value maps for ConnectionEventType.

View Source
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.

View Source
var (
	DebugCrashRequest_Type_name = map[int32]string{
		0: "GO",
		1: "NATIVE",
	}
	DebugCrashRequest_Type_value = map[string]int32{
		"GO":     0,
		"NATIVE": 1,
	}
)

Enum value maps for DebugCrashRequest_Type.

View Source
var File_daemon_started_service_proto protoreflect.FileDescriptor
View Source
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: "TriggerDebugCrash",
			Handler:    _StartedService_TriggerDebugCrash_Handler,
		},
		{
			MethodName: "TriggerOOMReport",
			Handler:    _StartedService_TriggerOOMReport_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,
		},
	},
	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:    "SubscribeOutbounds",
			Handler:       _StartedService_SubscribeOutbounds_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "StartNetworkQualityTest",
			Handler:       _StartedService_StartNetworkQualityTest_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "StartSTUNTest",
			Handler:       _StartedService_StartSTUNTest_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeTailscaleStatus",
			Handler:       _StartedService_SubscribeTailscaleStatus_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "StartTailscalePing",
			Handler:       _StartedService_StartTailscalePing_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) Descriptor() ([]byte, []int)

Deprecated: Use ClashMode.ProtoReflect.Descriptor instead.

func (*ClashMode) GetMode

func (x *ClashMode) GetMode() string

func (*ClashMode) ProtoMessage

func (*ClashMode) ProtoMessage()

func (*ClashMode) ProtoReflect

func (x *ClashMode) ProtoReflect() protoreflect.Message

func (*ClashMode) Reset

func (x *ClashMode) Reset()

func (*ClashMode) String

func (x *ClashMode) String() string

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 (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 (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 ConnectionEvent

type ConnectionEvent struct {
	Type          ConnectionEventType `protobuf:"varint,1,opt,name=type,proto3,enum=daemon.ConnectionEventType" json:"type,omitempty"`
	Id            string              `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Connection    *Connection         `protobuf:"bytes,3,opt,name=connection,proto3" json:"connection,omitempty"`
	UplinkDelta   int64               `protobuf:"varint,4,opt,name=uplinkDelta,proto3" json:"uplinkDelta,omitempty"`
	DownlinkDelta int64               `protobuf:"varint,5,opt,name=downlinkDelta,proto3" json:"downlinkDelta,omitempty"`
	ClosedAt      int64               `protobuf:"varint,6,opt,name=closedAt,proto3" json:"closedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionEvent) Descriptor deprecated

func (*ConnectionEvent) Descriptor() ([]byte, []int)

Deprecated: Use ConnectionEvent.ProtoReflect.Descriptor instead.

func (*ConnectionEvent) GetClosedAt

func (x *ConnectionEvent) GetClosedAt() int64

func (*ConnectionEvent) GetConnection

func (x *ConnectionEvent) GetConnection() *Connection

func (*ConnectionEvent) GetDownlinkDelta

func (x *ConnectionEvent) GetDownlinkDelta() int64

func (*ConnectionEvent) GetId

func (x *ConnectionEvent) GetId() string

func (*ConnectionEvent) GetType

func (x *ConnectionEvent) GetType() ConnectionEventType

func (*ConnectionEvent) GetUplinkDelta

func (x *ConnectionEvent) GetUplinkDelta() int64

func (*ConnectionEvent) ProtoMessage

func (*ConnectionEvent) ProtoMessage()

func (*ConnectionEvent) ProtoReflect

func (x *ConnectionEvent) ProtoReflect() protoreflect.Message

func (*ConnectionEvent) Reset

func (x *ConnectionEvent) Reset()

func (*ConnectionEvent) String

func (x *ConnectionEvent) String() string

type ConnectionEventType

type ConnectionEventType int32
const (
	ConnectionEventType_CONNECTION_EVENT_NEW    ConnectionEventType = 0
	ConnectionEventType_CONNECTION_EVENT_UPDATE ConnectionEventType = 1
	ConnectionEventType_CONNECTION_EVENT_CLOSED ConnectionEventType = 2
)

func (ConnectionEventType) Descriptor

func (ConnectionEventType) Enum

func (ConnectionEventType) EnumDescriptor deprecated

func (ConnectionEventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConnectionEventType.Descriptor instead.

func (ConnectionEventType) Number

func (ConnectionEventType) String

func (x ConnectionEventType) String() string

func (ConnectionEventType) Type

type ConnectionEvents

type ConnectionEvents struct {
	Events []*ConnectionEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	Reset_ bool               `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionEvents) Descriptor deprecated

func (*ConnectionEvents) Descriptor() ([]byte, []int)

Deprecated: Use ConnectionEvents.ProtoReflect.Descriptor instead.

func (*ConnectionEvents) GetEvents

func (x *ConnectionEvents) GetEvents() []*ConnectionEvent

func (*ConnectionEvents) GetReset_

func (x *ConnectionEvents) GetReset_() bool

func (*ConnectionEvents) ProtoMessage

func (*ConnectionEvents) ProtoMessage()

func (*ConnectionEvents) ProtoReflect

func (x *ConnectionEvents) ProtoReflect() protoreflect.Message

func (*ConnectionEvents) Reset

func (x *ConnectionEvents) Reset()

func (*ConnectionEvents) String

func (x *ConnectionEvents) String() string

type DebugCrashRequest

type DebugCrashRequest struct {
	Type DebugCrashRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=daemon.DebugCrashRequest_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*DebugCrashRequest) Descriptor deprecated

func (*DebugCrashRequest) Descriptor() ([]byte, []int)

Deprecated: Use DebugCrashRequest.ProtoReflect.Descriptor instead.

func (*DebugCrashRequest) GetType

func (*DebugCrashRequest) ProtoMessage

func (*DebugCrashRequest) ProtoMessage()

func (*DebugCrashRequest) ProtoReflect

func (x *DebugCrashRequest) ProtoReflect() protoreflect.Message

func (*DebugCrashRequest) Reset

func (x *DebugCrashRequest) Reset()

func (*DebugCrashRequest) String

func (x *DebugCrashRequest) String() string

type DebugCrashRequest_Type

type DebugCrashRequest_Type int32
const (
	DebugCrashRequest_GO     DebugCrashRequest_Type = 0
	DebugCrashRequest_NATIVE DebugCrashRequest_Type = 1
)

func (DebugCrashRequest_Type) Descriptor

func (DebugCrashRequest_Type) Enum

func (DebugCrashRequest_Type) EnumDescriptor deprecated

func (DebugCrashRequest_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use DebugCrashRequest_Type.Descriptor instead.

func (DebugCrashRequest_Type) Number

func (DebugCrashRequest_Type) String

func (x DebugCrashRequest_Type) String() string

func (DebugCrashRequest_Type) Type

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"`
	Description       string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	DeprecatedVersion string `protobuf:"bytes,5,opt,name=deprecatedVersion,proto3" json:"deprecatedVersion,omitempty"`
	ScheduledVersion  string `protobuf:"bytes,6,opt,name=scheduledVersion,proto3" json:"scheduledVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*DeprecatedWarning) Descriptor deprecated

func (*DeprecatedWarning) Descriptor() ([]byte, []int)

Deprecated: Use DeprecatedWarning.ProtoReflect.Descriptor instead.

func (*DeprecatedWarning) GetDeprecatedVersion

func (x *DeprecatedWarning) GetDeprecatedVersion() string

func (*DeprecatedWarning) GetDescription

func (x *DeprecatedWarning) GetDescription() string

func (*DeprecatedWarning) GetImpending

func (x *DeprecatedWarning) GetImpending() bool

func (*DeprecatedWarning) GetMessage

func (x *DeprecatedWarning) GetMessage() string
func (x *DeprecatedWarning) GetMigrationLink() string

func (*DeprecatedWarning) GetScheduledVersion

func (x *DeprecatedWarning) GetScheduledVersion() 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetIsExpand

func (x *Group) GetIsExpand() bool

func (*Group) GetItems

func (x *Group) GetItems() []*GroupItem

func (*Group) GetSelectable

func (x *Group) GetSelectable() bool

func (*Group) GetSelected

func (x *Group) GetSelected() string

func (*Group) GetTag

func (x *Group) GetTag() string

func (*Group) GetType

func (x *Group) GetType() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

func (x *Group) ProtoReflect() protoreflect.Message

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GroupItem.ProtoReflect.Descriptor instead.

func (*GroupItem) GetTag

func (x *GroupItem) GetTag() string

func (*GroupItem) GetType

func (x *GroupItem) GetType() string

func (*GroupItem) GetUrlTestDelay

func (x *GroupItem) GetUrlTestDelay() int32

func (*GroupItem) GetUrlTestTime

func (x *GroupItem) GetUrlTestTime() int64

func (*GroupItem) ProtoMessage

func (*GroupItem) ProtoMessage()

func (*GroupItem) ProtoReflect

func (x *GroupItem) ProtoReflect() protoreflect.Message

func (*GroupItem) Reset

func (x *GroupItem) Reset()

func (*GroupItem) String

func (x *GroupItem) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Groups.ProtoReflect.Descriptor instead.

func (*Groups) GetGroup

func (x *Groups) GetGroup() []*Group

func (*Groups) ProtoMessage

func (*Groups) ProtoMessage()

func (*Groups) ProtoReflect

func (x *Groups) ProtoReflect() protoreflect.Message

func (*Groups) Reset

func (x *Groups) Reset()

func (*Groups) String

func (x *Groups) String() string

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func (*Instance) Box

func (i *Instance) Box() *box.Box

func (*Instance) Close

func (i *Instance) Close() error

func (*Instance) PauseManager

func (i *Instance) PauseManager() pause.Manager

func (*Instance) Start

func (i *Instance) Start() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetMessages

func (x *Log) GetMessages() []*Log_Message

func (*Log) GetReset_

func (x *Log) GetReset_() bool

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type LogLevel

type LogLevel int32
const (
	LogLevel_PANIC LogLevel = 0
	LogLevel_FATAL LogLevel = 1
	LogLevel_ERROR LogLevel = 2
	LogLevel_WARN  LogLevel = 3
	LogLevel_INFO  LogLevel = 4
	LogLevel_DEBUG LogLevel = 5
	LogLevel_TRACE LogLevel = 6
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

func (LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

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 NetworkQualityTestProgress

type NetworkQualityTestProgress struct {
	Phase                    int32  `protobuf:"varint,1,opt,name=phase,proto3" json:"phase,omitempty"`
	DownloadCapacity         int64  `protobuf:"varint,2,opt,name=downloadCapacity,proto3" json:"downloadCapacity,omitempty"`
	UploadCapacity           int64  `protobuf:"varint,3,opt,name=uploadCapacity,proto3" json:"uploadCapacity,omitempty"`
	DownloadRPM              int32  `protobuf:"varint,4,opt,name=downloadRPM,proto3" json:"downloadRPM,omitempty"`
	UploadRPM                int32  `protobuf:"varint,5,opt,name=uploadRPM,proto3" json:"uploadRPM,omitempty"`
	IdleLatencyMs            int32  `protobuf:"varint,6,opt,name=idleLatencyMs,proto3" json:"idleLatencyMs,omitempty"`
	ElapsedMs                int64  `protobuf:"varint,7,opt,name=elapsedMs,proto3" json:"elapsedMs,omitempty"`
	IsFinal                  bool   `protobuf:"varint,8,opt,name=isFinal,proto3" json:"isFinal,omitempty"`
	Error                    string `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"`
	DownloadCapacityAccuracy int32  `protobuf:"varint,10,opt,name=downloadCapacityAccuracy,proto3" json:"downloadCapacityAccuracy,omitempty"`
	UploadCapacityAccuracy   int32  `protobuf:"varint,11,opt,name=uploadCapacityAccuracy,proto3" json:"uploadCapacityAccuracy,omitempty"`
	DownloadRPMAccuracy      int32  `protobuf:"varint,12,opt,name=downloadRPMAccuracy,proto3" json:"downloadRPMAccuracy,omitempty"`
	UploadRPMAccuracy        int32  `protobuf:"varint,13,opt,name=uploadRPMAccuracy,proto3" json:"uploadRPMAccuracy,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkQualityTestProgress) Descriptor deprecated

func (*NetworkQualityTestProgress) Descriptor() ([]byte, []int)

Deprecated: Use NetworkQualityTestProgress.ProtoReflect.Descriptor instead.

func (*NetworkQualityTestProgress) GetDownloadCapacity

func (x *NetworkQualityTestProgress) GetDownloadCapacity() int64

func (*NetworkQualityTestProgress) GetDownloadCapacityAccuracy

func (x *NetworkQualityTestProgress) GetDownloadCapacityAccuracy() int32

func (*NetworkQualityTestProgress) GetDownloadRPM

func (x *NetworkQualityTestProgress) GetDownloadRPM() int32

func (*NetworkQualityTestProgress) GetDownloadRPMAccuracy

func (x *NetworkQualityTestProgress) GetDownloadRPMAccuracy() int32

func (*NetworkQualityTestProgress) GetElapsedMs

func (x *NetworkQualityTestProgress) GetElapsedMs() int64

func (*NetworkQualityTestProgress) GetError

func (x *NetworkQualityTestProgress) GetError() string

func (*NetworkQualityTestProgress) GetIdleLatencyMs

func (x *NetworkQualityTestProgress) GetIdleLatencyMs() int32

func (*NetworkQualityTestProgress) GetIsFinal

func (x *NetworkQualityTestProgress) GetIsFinal() bool

func (*NetworkQualityTestProgress) GetPhase

func (x *NetworkQualityTestProgress) GetPhase() int32

func (*NetworkQualityTestProgress) GetUploadCapacity

func (x *NetworkQualityTestProgress) GetUploadCapacity() int64

func (*NetworkQualityTestProgress) GetUploadCapacityAccuracy

func (x *NetworkQualityTestProgress) GetUploadCapacityAccuracy() int32

func (*NetworkQualityTestProgress) GetUploadRPM

func (x *NetworkQualityTestProgress) GetUploadRPM() int32

func (*NetworkQualityTestProgress) GetUploadRPMAccuracy

func (x *NetworkQualityTestProgress) GetUploadRPMAccuracy() int32

func (*NetworkQualityTestProgress) ProtoMessage

func (*NetworkQualityTestProgress) ProtoMessage()

func (*NetworkQualityTestProgress) ProtoReflect

func (*NetworkQualityTestProgress) Reset

func (x *NetworkQualityTestProgress) Reset()

func (*NetworkQualityTestProgress) String

func (x *NetworkQualityTestProgress) String() string

type NetworkQualityTestRequest

type NetworkQualityTestRequest struct {
	ConfigURL         string `protobuf:"bytes,1,opt,name=configURL,proto3" json:"configURL,omitempty"`
	OutboundTag       string `protobuf:"bytes,2,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
	Serial            bool   `protobuf:"varint,3,opt,name=serial,proto3" json:"serial,omitempty"`
	MaxRuntimeSeconds int32  `protobuf:"varint,4,opt,name=maxRuntimeSeconds,proto3" json:"maxRuntimeSeconds,omitempty"`
	Http3             bool   `protobuf:"varint,5,opt,name=http3,proto3" json:"http3,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkQualityTestRequest) Descriptor deprecated

func (*NetworkQualityTestRequest) Descriptor() ([]byte, []int)

Deprecated: Use NetworkQualityTestRequest.ProtoReflect.Descriptor instead.

func (*NetworkQualityTestRequest) GetConfigURL

func (x *NetworkQualityTestRequest) GetConfigURL() string

func (*NetworkQualityTestRequest) GetHttp3

func (x *NetworkQualityTestRequest) GetHttp3() bool

func (*NetworkQualityTestRequest) GetMaxRuntimeSeconds

func (x *NetworkQualityTestRequest) GetMaxRuntimeSeconds() int32

func (*NetworkQualityTestRequest) GetOutboundTag

func (x *NetworkQualityTestRequest) GetOutboundTag() string

func (*NetworkQualityTestRequest) GetSerial

func (x *NetworkQualityTestRequest) GetSerial() bool

func (*NetworkQualityTestRequest) ProtoMessage

func (*NetworkQualityTestRequest) ProtoMessage()

func (*NetworkQualityTestRequest) ProtoReflect

func (*NetworkQualityTestRequest) Reset

func (x *NetworkQualityTestRequest) Reset()

func (*NetworkQualityTestRequest) String

func (x *NetworkQualityTestRequest) String() string

type OutboundList

type OutboundList struct {
	Outbounds []*GroupItem `protobuf:"bytes,1,rep,name=outbounds,proto3" json:"outbounds,omitempty"`
	// contains filtered or unexported fields
}

func (*OutboundList) Descriptor deprecated

func (*OutboundList) Descriptor() ([]byte, []int)

Deprecated: Use OutboundList.ProtoReflect.Descriptor instead.

func (*OutboundList) GetOutbounds

func (x *OutboundList) GetOutbounds() []*GroupItem

func (*OutboundList) ProtoMessage

func (*OutboundList) ProtoMessage()

func (*OutboundList) ProtoReflect

func (x *OutboundList) ProtoReflect() protoreflect.Message

func (*OutboundList) Reset

func (x *OutboundList) Reset()

func (*OutboundList) String

func (x *OutboundList) String() string

type OverrideOptions

type OverrideOptions struct {
	AutoRedirect   bool
	IncludePackage []string
	ExcludePackage []string
}

type PlatformHandler

type PlatformHandler interface {
	ServiceStop() error
	ServiceReload() error
	SystemProxyStatus() (*SystemProxyStatus, error)
	SetSystemProxyEnabled(enabled bool) error
	TriggerNativeCrash() error
	WriteDebugMessage(message string)
}

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"`
	PackageNames []string `protobuf:"bytes,5,rep,name=packageNames,proto3" json:"packageNames,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessInfo) Descriptor deprecated

func (*ProcessInfo) Descriptor() ([]byte, []int)

Deprecated: Use ProcessInfo.ProtoReflect.Descriptor instead.

func (*ProcessInfo) GetPackageNames added in v1.13.4

func (x *ProcessInfo) GetPackageNames() []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 STUNTestProgress

type STUNTestProgress struct {
	Phase            int32  `protobuf:"varint,1,opt,name=phase,proto3" json:"phase,omitempty"`
	ExternalAddr     string `protobuf:"bytes,2,opt,name=externalAddr,proto3" json:"externalAddr,omitempty"`
	LatencyMs        int32  `protobuf:"varint,3,opt,name=latencyMs,proto3" json:"latencyMs,omitempty"`
	NatMapping       int32  `protobuf:"varint,4,opt,name=natMapping,proto3" json:"natMapping,omitempty"`
	NatFiltering     int32  `protobuf:"varint,5,opt,name=natFiltering,proto3" json:"natFiltering,omitempty"`
	IsFinal          bool   `protobuf:"varint,6,opt,name=isFinal,proto3" json:"isFinal,omitempty"`
	Error            string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
	NatTypeSupported bool   `protobuf:"varint,8,opt,name=natTypeSupported,proto3" json:"natTypeSupported,omitempty"`
	// contains filtered or unexported fields
}

func (*STUNTestProgress) Descriptor deprecated

func (*STUNTestProgress) Descriptor() ([]byte, []int)

Deprecated: Use STUNTestProgress.ProtoReflect.Descriptor instead.

func (*STUNTestProgress) GetError

func (x *STUNTestProgress) GetError() string

func (*STUNTestProgress) GetExternalAddr

func (x *STUNTestProgress) GetExternalAddr() string

func (*STUNTestProgress) GetIsFinal

func (x *STUNTestProgress) GetIsFinal() bool

func (*STUNTestProgress) GetLatencyMs

func (x *STUNTestProgress) GetLatencyMs() int32

func (*STUNTestProgress) GetNatFiltering

func (x *STUNTestProgress) GetNatFiltering() int32

func (*STUNTestProgress) GetNatMapping

func (x *STUNTestProgress) GetNatMapping() int32

func (*STUNTestProgress) GetNatTypeSupported

func (x *STUNTestProgress) GetNatTypeSupported() bool

func (*STUNTestProgress) GetPhase

func (x *STUNTestProgress) GetPhase() int32

func (*STUNTestProgress) ProtoMessage

func (*STUNTestProgress) ProtoMessage()

func (*STUNTestProgress) ProtoReflect

func (x *STUNTestProgress) ProtoReflect() protoreflect.Message

func (*STUNTestProgress) Reset

func (x *STUNTestProgress) Reset()

func (*STUNTestProgress) String

func (x *STUNTestProgress) String() string

type STUNTestRequest

type STUNTestRequest struct {
	Server      string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	OutboundTag string `protobuf:"bytes,2,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
	// contains filtered or unexported fields
}

func (*STUNTestRequest) Descriptor deprecated

func (*STUNTestRequest) Descriptor() ([]byte, []int)

Deprecated: Use STUNTestRequest.ProtoReflect.Descriptor instead.

func (*STUNTestRequest) GetOutboundTag

func (x *STUNTestRequest) GetOutboundTag() string

func (*STUNTestRequest) GetServer

func (x *STUNTestRequest) GetServer() string

func (*STUNTestRequest) ProtoMessage

func (*STUNTestRequest) ProtoMessage()

func (*STUNTestRequest) ProtoReflect

func (x *STUNTestRequest) ProtoReflect() protoreflect.Message

func (*STUNTestRequest) Reset

func (x *STUNTestRequest) Reset()

func (*STUNTestRequest) String

func (x *STUNTestRequest) 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
	OOMKillerEnabled  bool
	OOMKillerDisabled bool
	OOMMemoryLimit    uint64
}

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) Enum

func (ServiceStatus_Type) EnumDescriptor deprecated

func (ServiceStatus_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceStatus_Type.Descriptor instead.

func (ServiceStatus_Type) Number

func (ServiceStatus_Type) String

func (x ServiceStatus_Type) String() string

func (ServiceStatus_Type) Type

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 (*SetSystemProxyEnabledRequest) Reset

func (x *SetSystemProxyEnabledRequest) Reset()

func (*SetSystemProxyEnabledRequest) 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) Descriptor() ([]byte, []int)

Deprecated: Use StartedAt.ProtoReflect.Descriptor instead.

func (*StartedAt) GetStartedAt

func (x *StartedAt) GetStartedAt() int64

func (*StartedAt) ProtoMessage

func (*StartedAt) ProtoMessage()

func (*StartedAt) ProtoReflect

func (x *StartedAt) ProtoReflect() protoreflect.Message

func (*StartedAt) Reset

func (x *StartedAt) Reset()

func (*StartedAt) String

func (x *StartedAt) String() string

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) ClearLogs

func (s *StartedService) ClearLogs(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*StartedService) Close

func (s *StartedService) Close()

func (*StartedService) CloseAllConnections

func (s *StartedService) CloseAllConnections(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

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 (s *StartedService) GetStartedAt(ctx context.Context, empty *emptypb.Empty) (*StartedAt, error)

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 (s *StartedService) ReloadService(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*StartedService) SelectOutbound

func (s *StartedService) SelectOutbound(ctx context.Context, request *SelectOutboundRequest) (*emptypb.Empty, error)

func (*StartedService) SetClashMode

func (s *StartedService) SetClashMode(ctx context.Context, request *ClashMode) (*emptypb.Empty, error)

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) StartNetworkQualityTest

func (*StartedService) StartOrReloadService

func (s *StartedService) StartOrReloadService(profileContent string, options *OverrideOptions) error

func (*StartedService) StartSTUNTest

func (s *StartedService) StartSTUNTest(
	request *STUNTestRequest,
	server grpc.ServerStreamingServer[STUNTestProgress],
) error

func (*StartedService) StartTailscalePing

func (s *StartedService) StartTailscalePing(
	request *TailscalePingRequest,
	server grpc.ServerStreamingServer[TailscalePingResponse],
) error

func (*StartedService) StopService

func (s *StartedService) StopService(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)

func (*StartedService) SubscribeClashMode

func (s *StartedService) SubscribeClashMode(empty *emptypb.Empty, server grpc.ServerStreamingServer[ClashMode]) error

func (*StartedService) SubscribeConnections

func (*StartedService) SubscribeGroups

func (s *StartedService) SubscribeGroups(empty *emptypb.Empty, server grpc.ServerStreamingServer[Groups]) error

func (*StartedService) SubscribeLog

func (s *StartedService) SubscribeLog(empty *emptypb.Empty, server grpc.ServerStreamingServer[Log]) error

func (*StartedService) SubscribeOutbounds

func (s *StartedService) SubscribeOutbounds(_ *emptypb.Empty, server grpc.ServerStreamingServer[OutboundList]) 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) SubscribeTailscaleStatus

func (s *StartedService) SubscribeTailscaleStatus(
	_ *emptypb.Empty,
	server grpc.ServerStreamingServer[TailscaleStatusUpdate],
) error

func (*StartedService) TriggerDebugCrash

func (s *StartedService) TriggerDebugCrash(ctx context.Context, request *DebugCrashRequest) (*emptypb.Empty, error)

func (*StartedService) TriggerOOMReport

func (s *StartedService) TriggerOOMReport(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, 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)
	TriggerDebugCrash(ctx context.Context, in *DebugCrashRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	TriggerOOMReport(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SubscribeConnections(ctx context.Context, in *SubscribeConnectionsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ConnectionEvents], 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)
	SubscribeOutbounds(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[OutboundList], error)
	StartNetworkQualityTest(ctx context.Context, in *NetworkQualityTestRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[NetworkQualityTestProgress], error)
	StartSTUNTest(ctx context.Context, in *STUNTestRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[STUNTestProgress], error)
	SubscribeTailscaleStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TailscaleStatusUpdate], error)
	StartTailscalePing(ctx context.Context, in *TailscalePingRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TailscalePingResponse], 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.

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)
	TriggerDebugCrash(context.Context, *DebugCrashRequest) (*emptypb.Empty, error)
	TriggerOOMReport(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	SubscribeConnections(*SubscribeConnectionsRequest, grpc.ServerStreamingServer[ConnectionEvents]) 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)
	SubscribeOutbounds(*emptypb.Empty, grpc.ServerStreamingServer[OutboundList]) error
	StartNetworkQualityTest(*NetworkQualityTestRequest, grpc.ServerStreamingServer[NetworkQualityTestProgress]) error
	StartSTUNTest(*STUNTestRequest, grpc.ServerStreamingServer[STUNTestProgress]) error
	SubscribeTailscaleStatus(*emptypb.Empty, grpc.ServerStreamingServer[TailscaleStatusUpdate]) error
	StartTailscalePing(*TailscalePingRequest, grpc.ServerStreamingServer[TailscalePingResponse]) error
	// contains filtered or unexported methods
}

StartedServiceServer is the server API for StartedService service. All implementations must embed UnimplementedStartedServiceServer for forward compatibility.

type StartedService_StartNetworkQualityTestClient

type StartedService_StartNetworkQualityTestClient = grpc.ServerStreamingClient[NetworkQualityTestProgress]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StartedService_StartNetworkQualityTestServer

type StartedService_StartNetworkQualityTestServer = grpc.ServerStreamingServer[NetworkQualityTestProgress]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StartedService_StartSTUNTestClient

type StartedService_StartSTUNTestClient = grpc.ServerStreamingClient[STUNTestProgress]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StartedService_StartSTUNTestServer

type StartedService_StartSTUNTestServer = grpc.ServerStreamingServer[STUNTestProgress]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StartedService_StartTailscalePingClient

type StartedService_StartTailscalePingClient = grpc.ServerStreamingClient[TailscalePingResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StartedService_StartTailscalePingServer

type StartedService_StartTailscalePingServer = grpc.ServerStreamingServer[TailscalePingResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

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[ConnectionEvents]

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[ConnectionEvents]

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_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_SubscribeOutboundsClient

type StartedService_SubscribeOutboundsClient = grpc.ServerStreamingClient[OutboundList]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StartedService_SubscribeOutboundsServer

type StartedService_SubscribeOutboundsServer = grpc.ServerStreamingServer[OutboundList]

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 StartedService_SubscribeTailscaleStatusClient

type StartedService_SubscribeTailscaleStatusClient = grpc.ServerStreamingClient[TailscaleStatusUpdate]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type StartedService_SubscribeTailscaleStatusServer

type StartedService_SubscribeTailscaleStatusServer = grpc.ServerStreamingServer[TailscaleStatusUpdate]

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) Descriptor() ([]byte, []int)

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetConnectionsIn

func (x *Status) GetConnectionsIn() int32

func (*Status) GetConnectionsOut

func (x *Status) GetConnectionsOut() int32
func (x *Status) GetDownlink() int64

func (*Status) GetDownlinkTotal

func (x *Status) GetDownlinkTotal() int64

func (*Status) GetGoroutines

func (x *Status) GetGoroutines() int32

func (*Status) GetMemory

func (x *Status) GetMemory() uint64

func (*Status) GetTrafficAvailable

func (x *Status) GetTrafficAvailable() bool
func (x *Status) GetUplink() int64

func (*Status) GetUplinkTotal

func (x *Status) GetUplinkTotal() int64

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

func (x *Status) ProtoReflect() protoreflect.Message

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type SubscribeConnectionsRequest

type SubscribeConnectionsRequest struct {
	Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeConnectionsRequest) Descriptor deprecated

func (*SubscribeConnectionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeConnectionsRequest.ProtoReflect.Descriptor instead.

func (*SubscribeConnectionsRequest) GetInterval

func (x *SubscribeConnectionsRequest) GetInterval() int64

func (*SubscribeConnectionsRequest) ProtoMessage

func (*SubscribeConnectionsRequest) ProtoMessage()

func (*SubscribeConnectionsRequest) ProtoReflect

func (*SubscribeConnectionsRequest) Reset

func (x *SubscribeConnectionsRequest) Reset()

func (*SubscribeConnectionsRequest) String

func (x *SubscribeConnectionsRequest) 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 TailscaleEndpointStatus

type TailscaleEndpointStatus struct {
	EndpointTag    string                `protobuf:"bytes,1,opt,name=endpointTag,proto3" json:"endpointTag,omitempty"`
	BackendState   string                `protobuf:"bytes,2,opt,name=backendState,proto3" json:"backendState,omitempty"`
	AuthURL        string                `protobuf:"bytes,3,opt,name=authURL,proto3" json:"authURL,omitempty"`
	NetworkName    string                `protobuf:"bytes,4,opt,name=networkName,proto3" json:"networkName,omitempty"`
	MagicDNSSuffix string                `protobuf:"bytes,5,opt,name=magicDNSSuffix,proto3" json:"magicDNSSuffix,omitempty"`
	Self           *TailscalePeer        `protobuf:"bytes,6,opt,name=self,proto3" json:"self,omitempty"`
	UserGroups     []*TailscaleUserGroup `protobuf:"bytes,7,rep,name=userGroups,proto3" json:"userGroups,omitempty"`
	// contains filtered or unexported fields
}

func (*TailscaleEndpointStatus) Descriptor deprecated

func (*TailscaleEndpointStatus) Descriptor() ([]byte, []int)

Deprecated: Use TailscaleEndpointStatus.ProtoReflect.Descriptor instead.

func (*TailscaleEndpointStatus) GetAuthURL

func (x *TailscaleEndpointStatus) GetAuthURL() string

func (*TailscaleEndpointStatus) GetBackendState

func (x *TailscaleEndpointStatus) GetBackendState() string

func (*TailscaleEndpointStatus) GetEndpointTag

func (x *TailscaleEndpointStatus) GetEndpointTag() string

func (*TailscaleEndpointStatus) GetMagicDNSSuffix

func (x *TailscaleEndpointStatus) GetMagicDNSSuffix() string

func (*TailscaleEndpointStatus) GetNetworkName

func (x *TailscaleEndpointStatus) GetNetworkName() string

func (*TailscaleEndpointStatus) GetSelf

func (x *TailscaleEndpointStatus) GetSelf() *TailscalePeer

func (*TailscaleEndpointStatus) GetUserGroups

func (x *TailscaleEndpointStatus) GetUserGroups() []*TailscaleUserGroup

func (*TailscaleEndpointStatus) ProtoMessage

func (*TailscaleEndpointStatus) ProtoMessage()

func (*TailscaleEndpointStatus) ProtoReflect

func (x *TailscaleEndpointStatus) ProtoReflect() protoreflect.Message

func (*TailscaleEndpointStatus) Reset

func (x *TailscaleEndpointStatus) Reset()

func (*TailscaleEndpointStatus) String

func (x *TailscaleEndpointStatus) String() string

type TailscalePeer

type TailscalePeer struct {
	HostName       string   `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"`
	DnsName        string   `protobuf:"bytes,2,opt,name=dnsName,proto3" json:"dnsName,omitempty"`
	Os             string   `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"`
	TailscaleIPs   []string `protobuf:"bytes,4,rep,name=tailscaleIPs,proto3" json:"tailscaleIPs,omitempty"`
	Online         bool     `protobuf:"varint,5,opt,name=online,proto3" json:"online,omitempty"`
	ExitNode       bool     `protobuf:"varint,6,opt,name=exitNode,proto3" json:"exitNode,omitempty"`
	ExitNodeOption bool     `protobuf:"varint,7,opt,name=exitNodeOption,proto3" json:"exitNodeOption,omitempty"`
	Active         bool     `protobuf:"varint,8,opt,name=active,proto3" json:"active,omitempty"`
	RxBytes        int64    `protobuf:"varint,9,opt,name=rxBytes,proto3" json:"rxBytes,omitempty"`
	TxBytes        int64    `protobuf:"varint,10,opt,name=txBytes,proto3" json:"txBytes,omitempty"`
	KeyExpiry      int64    `protobuf:"varint,11,opt,name=keyExpiry,proto3" json:"keyExpiry,omitempty"`
	// contains filtered or unexported fields
}

func (*TailscalePeer) Descriptor deprecated

func (*TailscalePeer) Descriptor() ([]byte, []int)

Deprecated: Use TailscalePeer.ProtoReflect.Descriptor instead.

func (*TailscalePeer) GetActive

func (x *TailscalePeer) GetActive() bool

func (*TailscalePeer) GetDnsName

func (x *TailscalePeer) GetDnsName() string

func (*TailscalePeer) GetExitNode

func (x *TailscalePeer) GetExitNode() bool

func (*TailscalePeer) GetExitNodeOption

func (x *TailscalePeer) GetExitNodeOption() bool

func (*TailscalePeer) GetHostName

func (x *TailscalePeer) GetHostName() string

func (*TailscalePeer) GetKeyExpiry

func (x *TailscalePeer) GetKeyExpiry() int64

func (*TailscalePeer) GetOnline

func (x *TailscalePeer) GetOnline() bool

func (*TailscalePeer) GetOs

func (x *TailscalePeer) GetOs() string

func (*TailscalePeer) GetRxBytes

func (x *TailscalePeer) GetRxBytes() int64

func (*TailscalePeer) GetTailscaleIPs

func (x *TailscalePeer) GetTailscaleIPs() []string

func (*TailscalePeer) GetTxBytes

func (x *TailscalePeer) GetTxBytes() int64

func (*TailscalePeer) ProtoMessage

func (*TailscalePeer) ProtoMessage()

func (*TailscalePeer) ProtoReflect

func (x *TailscalePeer) ProtoReflect() protoreflect.Message

func (*TailscalePeer) Reset

func (x *TailscalePeer) Reset()

func (*TailscalePeer) String

func (x *TailscalePeer) String() string

type TailscalePingRequest

type TailscalePingRequest struct {
	EndpointTag string `protobuf:"bytes,1,opt,name=endpointTag,proto3" json:"endpointTag,omitempty"`
	PeerIP      string `protobuf:"bytes,2,opt,name=peerIP,proto3" json:"peerIP,omitempty"`
	// contains filtered or unexported fields
}

func (*TailscalePingRequest) Descriptor deprecated

func (*TailscalePingRequest) Descriptor() ([]byte, []int)

Deprecated: Use TailscalePingRequest.ProtoReflect.Descriptor instead.

func (*TailscalePingRequest) GetEndpointTag

func (x *TailscalePingRequest) GetEndpointTag() string

func (*TailscalePingRequest) GetPeerIP

func (x *TailscalePingRequest) GetPeerIP() string

func (*TailscalePingRequest) ProtoMessage

func (*TailscalePingRequest) ProtoMessage()

func (*TailscalePingRequest) ProtoReflect

func (x *TailscalePingRequest) ProtoReflect() protoreflect.Message

func (*TailscalePingRequest) Reset

func (x *TailscalePingRequest) Reset()

func (*TailscalePingRequest) String

func (x *TailscalePingRequest) String() string

type TailscalePingResponse

type TailscalePingResponse struct {
	LatencyMs      float64 `protobuf:"fixed64,1,opt,name=latencyMs,proto3" json:"latencyMs,omitempty"`
	IsDirect       bool    `protobuf:"varint,2,opt,name=isDirect,proto3" json:"isDirect,omitempty"`
	Endpoint       string  `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	DerpRegionID   int32   `protobuf:"varint,4,opt,name=derpRegionID,proto3" json:"derpRegionID,omitempty"`
	DerpRegionCode string  `protobuf:"bytes,5,opt,name=derpRegionCode,proto3" json:"derpRegionCode,omitempty"`
	Error          string  `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TailscalePingResponse) Descriptor deprecated

func (*TailscalePingResponse) Descriptor() ([]byte, []int)

Deprecated: Use TailscalePingResponse.ProtoReflect.Descriptor instead.

func (*TailscalePingResponse) GetDerpRegionCode

func (x *TailscalePingResponse) GetDerpRegionCode() string

func (*TailscalePingResponse) GetDerpRegionID

func (x *TailscalePingResponse) GetDerpRegionID() int32

func (*TailscalePingResponse) GetEndpoint

func (x *TailscalePingResponse) GetEndpoint() string

func (*TailscalePingResponse) GetError

func (x *TailscalePingResponse) GetError() string

func (*TailscalePingResponse) GetIsDirect

func (x *TailscalePingResponse) GetIsDirect() bool

func (*TailscalePingResponse) GetLatencyMs

func (x *TailscalePingResponse) GetLatencyMs() float64

func (*TailscalePingResponse) ProtoMessage

func (*TailscalePingResponse) ProtoMessage()

func (*TailscalePingResponse) ProtoReflect

func (x *TailscalePingResponse) ProtoReflect() protoreflect.Message

func (*TailscalePingResponse) Reset

func (x *TailscalePingResponse) Reset()

func (*TailscalePingResponse) String

func (x *TailscalePingResponse) String() string

type TailscaleStatusUpdate

type TailscaleStatusUpdate struct {
	Endpoints []*TailscaleEndpointStatus `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*TailscaleStatusUpdate) Descriptor deprecated

func (*TailscaleStatusUpdate) Descriptor() ([]byte, []int)

Deprecated: Use TailscaleStatusUpdate.ProtoReflect.Descriptor instead.

func (*TailscaleStatusUpdate) GetEndpoints

func (x *TailscaleStatusUpdate) GetEndpoints() []*TailscaleEndpointStatus

func (*TailscaleStatusUpdate) ProtoMessage

func (*TailscaleStatusUpdate) ProtoMessage()

func (*TailscaleStatusUpdate) ProtoReflect

func (x *TailscaleStatusUpdate) ProtoReflect() protoreflect.Message

func (*TailscaleStatusUpdate) Reset

func (x *TailscaleStatusUpdate) Reset()

func (*TailscaleStatusUpdate) String

func (x *TailscaleStatusUpdate) String() string

type TailscaleUserGroup

type TailscaleUserGroup struct {
	UserID        int64            `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	LoginName     string           `protobuf:"bytes,2,opt,name=loginName,proto3" json:"loginName,omitempty"`
	DisplayName   string           `protobuf:"bytes,3,opt,name=displayName,proto3" json:"displayName,omitempty"`
	ProfilePicURL string           `protobuf:"bytes,4,opt,name=profilePicURL,proto3" json:"profilePicURL,omitempty"`
	Peers         []*TailscalePeer `protobuf:"bytes,5,rep,name=peers,proto3" json:"peers,omitempty"`
	// contains filtered or unexported fields
}

func (*TailscaleUserGroup) Descriptor deprecated

func (*TailscaleUserGroup) Descriptor() ([]byte, []int)

Deprecated: Use TailscaleUserGroup.ProtoReflect.Descriptor instead.

func (*TailscaleUserGroup) GetDisplayName

func (x *TailscaleUserGroup) GetDisplayName() string

func (*TailscaleUserGroup) GetLoginName

func (x *TailscaleUserGroup) GetLoginName() string

func (*TailscaleUserGroup) GetPeers

func (x *TailscaleUserGroup) GetPeers() []*TailscalePeer

func (*TailscaleUserGroup) GetProfilePicURL

func (x *TailscaleUserGroup) GetProfilePicURL() string

func (*TailscaleUserGroup) GetUserID

func (x *TailscaleUserGroup) GetUserID() int64

func (*TailscaleUserGroup) ProtoMessage

func (*TailscaleUserGroup) ProtoMessage()

func (*TailscaleUserGroup) ProtoReflect

func (x *TailscaleUserGroup) ProtoReflect() protoreflect.Message

func (*TailscaleUserGroup) Reset

func (x *TailscaleUserGroup) Reset()

func (*TailscaleUserGroup) String

func (x *TailscaleUserGroup) 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) ClearLogs

func (UnimplementedStartedServiceServer) CloseAllConnections

func (UnimplementedStartedServiceServer) CloseConnection

func (UnimplementedStartedServiceServer) GetClashModeStatus

func (UnimplementedStartedServiceServer) GetDefaultLogLevel

func (UnimplementedStartedServiceServer) GetDeprecatedWarnings

func (UnimplementedStartedServiceServer) GetStartedAt

func (UnimplementedStartedServiceServer) GetSystemProxyStatus

func (UnimplementedStartedServiceServer) ReloadService

func (UnimplementedStartedServiceServer) SelectOutbound

func (UnimplementedStartedServiceServer) SetClashMode

func (UnimplementedStartedServiceServer) SetGroupExpand

func (UnimplementedStartedServiceServer) SetSystemProxyEnabled

func (UnimplementedStartedServiceServer) StartSTUNTest

func (UnimplementedStartedServiceServer) StopService

func (UnimplementedStartedServiceServer) SubscribeClashMode

func (UnimplementedStartedServiceServer) SubscribeGroups

func (UnimplementedStartedServiceServer) SubscribeLog

func (UnimplementedStartedServiceServer) SubscribeOutbounds

func (UnimplementedStartedServiceServer) SubscribeServiceStatus

func (UnimplementedStartedServiceServer) SubscribeStatus

func (UnimplementedStartedServiceServer) SubscribeTailscaleStatus

func (UnimplementedStartedServiceServer) TriggerDebugCrash

func (UnimplementedStartedServiceServer) TriggerOOMReport

func (UnimplementedStartedServiceServer) URLTest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL