Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterVpnerManagerServer(s grpc.ServiceRegistrar, srv VpnerManagerServer)
- type ChainStatus
- func (*ChainStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ChainStatus) GetAutoRun() bool
- func (x *ChainStatus) GetHost() string
- func (x *ChainStatus) GetInboundPort() int32
- func (x *ChainStatus) GetLastExit() string
- func (x *ChainStatus) GetName() string
- func (x *ChainStatus) GetPort() int32
- func (x *ChainStatus) GetRestarts() int32
- func (x *ChainStatus) GetRunning() bool
- func (x *ChainStatus) GetType() string
- func (x *ChainStatus) GetUptimeSeconds() int64
- func (*ChainStatus) ProtoMessage()
- func (x *ChainStatus) ProtoReflect() protoreflect.Message
- func (x *ChainStatus) Reset()
- func (x *ChainStatus) String() string
- type DohServerStatus
- func (*DohServerStatus) Descriptor() ([]byte, []int)deprecated
- func (x *DohServerStatus) GetFailures() uint64
- func (x *DohServerStatus) GetLastLatencyMs() int64
- func (x *DohServerStatus) GetServer() string
- func (x *DohServerStatus) GetSuccesses() uint64
- func (*DohServerStatus) ProtoMessage()
- func (x *DohServerStatus) ProtoReflect() protoreflect.Message
- func (x *DohServerStatus) Reset()
- func (x *DohServerStatus) String() string
- type Empty
- type Error
- type GenericResponse
- func (*GenericResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenericResponse) GetError() *Error
- func (x *GenericResponse) GetResult() isGenericResponse_Result
- func (x *GenericResponse) GetSuccess() *Success
- func (*GenericResponse) ProtoMessage()
- func (x *GenericResponse) ProtoReflect() protoreflect.Message
- func (x *GenericResponse) Reset()
- func (x *GenericResponse) String() string
- type GenericResponse_Error
- type GenericResponse_Success
- type InterfaceActionRequest
- func (*InterfaceActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InterfaceActionRequest) GetId() string
- func (*InterfaceActionRequest) ProtoMessage()
- func (x *InterfaceActionRequest) ProtoReflect() protoreflect.Message
- func (x *InterfaceActionRequest) Reset()
- func (x *InterfaceActionRequest) String() string
- type InterfaceInfo
- func (*InterfaceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *InterfaceInfo) GetAdded() bool
- func (x *InterfaceInfo) GetDescription() string
- func (x *InterfaceInfo) GetId() string
- func (x *InterfaceInfo) GetStatus() InterfaceInfo_State
- func (x *InterfaceInfo) GetType() string
- func (*InterfaceInfo) ProtoMessage()
- func (x *InterfaceInfo) ProtoReflect() protoreflect.Message
- func (x *InterfaceInfo) Reset()
- func (x *InterfaceInfo) String() string
- type InterfaceInfo_State
- func (InterfaceInfo_State) Descriptor() protoreflect.EnumDescriptor
- func (x InterfaceInfo_State) Enum() *InterfaceInfo_State
- func (InterfaceInfo_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x InterfaceInfo_State) Number() protoreflect.EnumNumber
- func (x InterfaceInfo_State) String() string
- func (InterfaceInfo_State) Type() protoreflect.EnumType
- type InterfaceListResponse
- func (*InterfaceListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InterfaceListResponse) GetInterfaces() []*InterfaceInfo
- func (*InterfaceListResponse) ProtoMessage()
- func (x *InterfaceListResponse) ProtoReflect() protoreflect.Message
- func (x *InterfaceListResponse) Reset()
- func (x *InterfaceListResponse) String() string
- type LogEvent
- func (*LogEvent) Descriptor() ([]byte, []int)deprecated
- func (x *LogEvent) GetLevel() string
- func (x *LogEvent) GetMessage() string
- func (x *LogEvent) GetUnixMs() int64
- func (*LogEvent) ProtoMessage()
- func (x *LogEvent) ProtoReflect() protoreflect.Message
- func (x *LogEvent) Reset()
- func (x *LogEvent) String() string
- type ManageAction
- func (ManageAction) Descriptor() protoreflect.EnumDescriptor
- func (x ManageAction) Enum() *ManageAction
- func (ManageAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x ManageAction) Number() protoreflect.EnumNumber
- func (x ManageAction) String() string
- func (ManageAction) Type() protoreflect.EnumType
- type ManageRequest
- type QueryStats
- func (*QueryStats) Descriptor() ([]byte, []int)deprecated
- func (x *QueryStats) GetCacheHits() int64
- func (x *QueryStats) GetCustom() int64
- func (x *QueryStats) GetDoh() int64
- func (x *QueryStats) GetNxdomain() int64
- func (x *QueryStats) GetRefused() int64
- func (x *QueryStats) GetServfail() int64
- func (x *QueryStats) GetTotal() int64
- func (*QueryStats) ProtoMessage()
- func (x *QueryStats) ProtoReflect() protoreflect.Message
- func (x *QueryStats) Reset()
- func (x *QueryStats) String() string
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetChains() []*ChainStatus
- func (x *StatusResponse) GetDnsPort() int32
- func (x *StatusResponse) GetDnsRunning() bool
- func (x *StatusResponse) GetDohServers() []*DohServerStatus
- func (x *StatusResponse) GetIpsetEntriesV4() int64
- func (x *StatusResponse) GetIpsetEntriesV6() int64
- func (x *StatusResponse) GetQueryStats() *QueryStats
- func (x *StatusResponse) GetRecentEvents() []*LogEvent
- func (x *StatusResponse) GetTproxyEnabled() bool
- func (x *StatusResponse) GetUnblockRuleCount() int32
- func (x *StatusResponse) GetUptimeSeconds() int64
- func (x *StatusResponse) GetVersion() string
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type Success
- type UnblockAddRequest
- func (*UnblockAddRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnblockAddRequest) GetChainName() string
- func (x *UnblockAddRequest) GetDomain() string
- func (*UnblockAddRequest) ProtoMessage()
- func (x *UnblockAddRequest) ProtoReflect() protoreflect.Message
- func (x *UnblockAddRequest) Reset()
- func (x *UnblockAddRequest) String() string
- type UnblockDelRequest
- type UnblockInfo
- func (*UnblockInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UnblockInfo) GetChainName() string
- func (x *UnblockInfo) GetRules() []string
- func (x *UnblockInfo) GetTypeName() string
- func (*UnblockInfo) ProtoMessage()
- func (x *UnblockInfo) ProtoReflect() protoreflect.Message
- func (x *UnblockInfo) Reset()
- func (x *UnblockInfo) String() string
- type UnblockListResponse
- func (*UnblockListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnblockListResponse) GetRules() []*UnblockInfo
- func (*UnblockListResponse) ProtoMessage()
- func (x *UnblockListResponse) ProtoReflect() protoreflect.Message
- func (x *UnblockListResponse) Reset()
- func (x *UnblockListResponse) String() string
- type UnimplementedVpnerManagerServer
- func (UnimplementedVpnerManagerServer) DnsManage(context.Context, *ManageRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) HookRestore(context.Context, *Empty) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) InterfaceAdd(context.Context, *InterfaceActionRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) InterfaceDel(context.Context, *InterfaceActionRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) InterfaceList(context.Context, *Empty) (*InterfaceListResponse, error)
- func (UnimplementedVpnerManagerServer) InterfaceScan(context.Context, *Empty) (*InterfaceListResponse, error)
- func (UnimplementedVpnerManagerServer) Status(context.Context, *Empty) (*StatusResponse, error)
- func (UnimplementedVpnerManagerServer) SyncRules(context.Context, *Empty) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) UnblockAdd(context.Context, *UnblockAddRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) UnblockDel(context.Context, *UnblockDelRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) UnblockList(context.Context, *Empty) (*UnblockListResponse, error)
- func (UnimplementedVpnerManagerServer) XrayCreate(context.Context, *XrayCreateRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) XrayDelete(context.Context, *XrayRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) XrayList(context.Context, *Empty) (*XrayListResponse, error)
- func (UnimplementedVpnerManagerServer) XrayManage(context.Context, *XrayManageRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) XraySetAutorun(context.Context, *XrayAutoRunRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) XrayTest(context.Context, *XrayRequest) (*GenericResponse, error)
- func (UnimplementedVpnerManagerServer) XrayUpdate(context.Context, *XrayUpdateRequest) (*GenericResponse, error)
- type UnsafeVpnerManagerServer
- type VpnerManagerClient
- type VpnerManagerServer
- type XrayAutoRunRequest
- func (*XrayAutoRunRequest) Descriptor() ([]byte, []int)deprecated
- func (x *XrayAutoRunRequest) GetAutoRun() bool
- func (x *XrayAutoRunRequest) GetChainName() string
- func (*XrayAutoRunRequest) ProtoMessage()
- func (x *XrayAutoRunRequest) ProtoReflect() protoreflect.Message
- func (x *XrayAutoRunRequest) Reset()
- func (x *XrayAutoRunRequest) String() string
- type XrayCreateRequest
- func (*XrayCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *XrayCreateRequest) GetAutoRun() bool
- func (x *XrayCreateRequest) GetLink() string
- func (*XrayCreateRequest) ProtoMessage()
- func (x *XrayCreateRequest) ProtoReflect() protoreflect.Message
- func (x *XrayCreateRequest) Reset()
- func (x *XrayCreateRequest) String() string
- type XrayInfo
- func (*XrayInfo) Descriptor() ([]byte, []int)deprecated
- func (x *XrayInfo) GetAutoRun() bool
- func (x *XrayInfo) GetChainName() string
- func (x *XrayInfo) GetHost() string
- func (x *XrayInfo) GetPort() int32
- func (x *XrayInfo) GetStatus() bool
- func (x *XrayInfo) GetType() string
- func (*XrayInfo) ProtoMessage()
- func (x *XrayInfo) ProtoReflect() protoreflect.Message
- func (x *XrayInfo) Reset()
- func (x *XrayInfo) String() string
- type XrayListResponse
- type XrayManageRequest
- func (*XrayManageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *XrayManageRequest) GetAct() ManageAction
- func (x *XrayManageRequest) GetChainName() string
- func (*XrayManageRequest) ProtoMessage()
- func (x *XrayManageRequest) ProtoReflect() protoreflect.Message
- func (x *XrayManageRequest) Reset()
- func (x *XrayManageRequest) String() string
- type XrayRequest
- type XrayUpdateRequest
- func (*XrayUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *XrayUpdateRequest) GetChainName() string
- func (x *XrayUpdateRequest) GetLink() string
- func (*XrayUpdateRequest) ProtoMessage()
- func (x *XrayUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *XrayUpdateRequest) Reset()
- func (x *XrayUpdateRequest) String() string
Constants ¶
const ( VpnerManager_UnblockList_FullMethodName = "/vpner.VpnerManager/UnblockList" VpnerManager_UnblockAdd_FullMethodName = "/vpner.VpnerManager/UnblockAdd" VpnerManager_UnblockDel_FullMethodName = "/vpner.VpnerManager/UnblockDel" VpnerManager_InterfaceList_FullMethodName = "/vpner.VpnerManager/InterfaceList" VpnerManager_InterfaceScan_FullMethodName = "/vpner.VpnerManager/InterfaceScan" VpnerManager_InterfaceAdd_FullMethodName = "/vpner.VpnerManager/InterfaceAdd" VpnerManager_InterfaceDel_FullMethodName = "/vpner.VpnerManager/InterfaceDel" VpnerManager_DnsManage_FullMethodName = "/vpner.VpnerManager/DnsManage" VpnerManager_XrayCreate_FullMethodName = "/vpner.VpnerManager/XrayCreate" VpnerManager_XrayUpdate_FullMethodName = "/vpner.VpnerManager/XrayUpdate" VpnerManager_XrayDelete_FullMethodName = "/vpner.VpnerManager/XrayDelete" VpnerManager_XrayList_FullMethodName = "/vpner.VpnerManager/XrayList" VpnerManager_XrayManage_FullMethodName = "/vpner.VpnerManager/XrayManage" VpnerManager_XrayTest_FullMethodName = "/vpner.VpnerManager/XrayTest" VpnerManager_XraySetAutorun_FullMethodName = "/vpner.VpnerManager/XraySetAutorun" VpnerManager_HookRestore_FullMethodName = "/vpner.VpnerManager/HookRestore" VpnerManager_Status_FullMethodName = "/vpner.VpnerManager/Status" VpnerManager_SyncRules_FullMethodName = "/vpner.VpnerManager/SyncRules" )
Variables ¶
var ( ManageAction_name = map[int32]string{ 0: "START", 1: "STOP", 2: "STATUS", 3: "RESTART", } ManageAction_value = map[string]int32{ "START": 0, "STOP": 1, "STATUS": 2, "RESTART": 3, } )
Enum value maps for ManageAction.
var ( InterfaceInfo_State_name = map[int32]string{ 0: "UP", 1: "DOWN", 2: "UNKNOWN", } InterfaceInfo_State_value = map[string]int32{ "UP": 0, "DOWN": 1, "UNKNOWN": 2, } )
Enum value maps for InterfaceInfo_State.
var File_structures_proto protoreflect.FileDescriptor
var File_vpner_proto protoreflect.FileDescriptor
var VpnerManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vpner.VpnerManager", HandlerType: (*VpnerManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UnblockList", Handler: _VpnerManager_UnblockList_Handler, }, { MethodName: "UnblockAdd", Handler: _VpnerManager_UnblockAdd_Handler, }, { MethodName: "UnblockDel", Handler: _VpnerManager_UnblockDel_Handler, }, { MethodName: "InterfaceList", Handler: _VpnerManager_InterfaceList_Handler, }, { MethodName: "InterfaceScan", Handler: _VpnerManager_InterfaceScan_Handler, }, { MethodName: "InterfaceAdd", Handler: _VpnerManager_InterfaceAdd_Handler, }, { MethodName: "InterfaceDel", Handler: _VpnerManager_InterfaceDel_Handler, }, { MethodName: "DnsManage", Handler: _VpnerManager_DnsManage_Handler, }, { MethodName: "XrayCreate", Handler: _VpnerManager_XrayCreate_Handler, }, { MethodName: "XrayUpdate", Handler: _VpnerManager_XrayUpdate_Handler, }, { MethodName: "XrayDelete", Handler: _VpnerManager_XrayDelete_Handler, }, { MethodName: "XrayList", Handler: _VpnerManager_XrayList_Handler, }, { MethodName: "XrayManage", Handler: _VpnerManager_XrayManage_Handler, }, { MethodName: "XrayTest", Handler: _VpnerManager_XrayTest_Handler, }, { MethodName: "XraySetAutorun", Handler: _VpnerManager_XraySetAutorun_Handler, }, { MethodName: "HookRestore", Handler: _VpnerManager_HookRestore_Handler, }, { MethodName: "Status", Handler: _VpnerManager_Status_Handler, }, { MethodName: "SyncRules", Handler: _VpnerManager_SyncRules_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "vpner.proto", }
VpnerManager_ServiceDesc is the grpc.ServiceDesc for VpnerManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVpnerManagerServer ¶
func RegisterVpnerManagerServer(s grpc.ServiceRegistrar, srv VpnerManagerServer)
Types ¶
type ChainStatus ¶ added in v1.0.1
type ChainStatus struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
InboundPort int32 `protobuf:"varint,5,opt,name=inbound_port,json=inboundPort,proto3" json:"inbound_port,omitempty"`
AutoRun bool `protobuf:"varint,6,opt,name=auto_run,json=autoRun,proto3" json:"auto_run,omitempty"`
Running bool `protobuf:"varint,7,opt,name=running,proto3" json:"running,omitempty"`
Restarts int32 `protobuf:"varint,8,opt,name=restarts,proto3" json:"restarts,omitempty"`
UptimeSeconds int64 `protobuf:"varint,9,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"`
LastExit string `protobuf:"bytes,10,opt,name=last_exit,json=lastExit,proto3" json:"last_exit,omitempty"`
// contains filtered or unexported fields
}
func (*ChainStatus) Descriptor
deprecated
added in
v1.0.1
func (*ChainStatus) Descriptor() ([]byte, []int)
Deprecated: Use ChainStatus.ProtoReflect.Descriptor instead.
func (*ChainStatus) GetAutoRun ¶ added in v1.0.1
func (x *ChainStatus) GetAutoRun() bool
func (*ChainStatus) GetHost ¶ added in v1.0.1
func (x *ChainStatus) GetHost() string
func (*ChainStatus) GetInboundPort ¶ added in v1.0.1
func (x *ChainStatus) GetInboundPort() int32
func (*ChainStatus) GetLastExit ¶ added in v1.0.1
func (x *ChainStatus) GetLastExit() string
func (*ChainStatus) GetName ¶ added in v1.0.1
func (x *ChainStatus) GetName() string
func (*ChainStatus) GetPort ¶ added in v1.0.1
func (x *ChainStatus) GetPort() int32
func (*ChainStatus) GetRestarts ¶ added in v1.0.1
func (x *ChainStatus) GetRestarts() int32
func (*ChainStatus) GetRunning ¶ added in v1.0.1
func (x *ChainStatus) GetRunning() bool
func (*ChainStatus) GetType ¶ added in v1.0.1
func (x *ChainStatus) GetType() string
func (*ChainStatus) GetUptimeSeconds ¶ added in v1.0.1
func (x *ChainStatus) GetUptimeSeconds() int64
func (*ChainStatus) ProtoMessage ¶ added in v1.0.1
func (*ChainStatus) ProtoMessage()
func (*ChainStatus) ProtoReflect ¶ added in v1.0.1
func (x *ChainStatus) ProtoReflect() protoreflect.Message
func (*ChainStatus) Reset ¶ added in v1.0.1
func (x *ChainStatus) Reset()
func (*ChainStatus) String ¶ added in v1.0.1
func (x *ChainStatus) String() string
type DohServerStatus ¶ added in v1.0.1
type DohServerStatus struct {
Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
Successes uint64 `protobuf:"varint,2,opt,name=successes,proto3" json:"successes,omitempty"`
Failures uint64 `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"`
LastLatencyMs int64 `protobuf:"varint,4,opt,name=last_latency_ms,json=lastLatencyMs,proto3" json:"last_latency_ms,omitempty"`
// contains filtered or unexported fields
}
func (*DohServerStatus) Descriptor
deprecated
added in
v1.0.1
func (*DohServerStatus) Descriptor() ([]byte, []int)
Deprecated: Use DohServerStatus.ProtoReflect.Descriptor instead.
func (*DohServerStatus) GetFailures ¶ added in v1.0.1
func (x *DohServerStatus) GetFailures() uint64
func (*DohServerStatus) GetLastLatencyMs ¶ added in v1.0.1
func (x *DohServerStatus) GetLastLatencyMs() int64
func (*DohServerStatus) GetServer ¶ added in v1.0.1
func (x *DohServerStatus) GetServer() string
func (*DohServerStatus) GetSuccesses ¶ added in v1.0.1
func (x *DohServerStatus) GetSuccesses() uint64
func (*DohServerStatus) ProtoMessage ¶ added in v1.0.1
func (*DohServerStatus) ProtoMessage()
func (*DohServerStatus) ProtoReflect ¶ added in v1.0.1
func (x *DohServerStatus) ProtoReflect() protoreflect.Message
func (*DohServerStatus) Reset ¶ added in v1.0.1
func (x *DohServerStatus) Reset()
func (*DohServerStatus) String ¶ added in v1.0.1
func (x *DohServerStatus) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Error ¶
type Error struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type GenericResponse ¶
type GenericResponse struct {
// Types that are valid to be assigned to Result:
//
// *GenericResponse_Success
// *GenericResponse_Error
Result isGenericResponse_Result `protobuf_oneof:"result"`
// contains filtered or unexported fields
}
func (*GenericResponse) Descriptor
deprecated
func (*GenericResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenericResponse.ProtoReflect.Descriptor instead.
func (*GenericResponse) GetError ¶
func (x *GenericResponse) GetError() *Error
func (*GenericResponse) GetResult ¶
func (x *GenericResponse) GetResult() isGenericResponse_Result
func (*GenericResponse) GetSuccess ¶
func (x *GenericResponse) GetSuccess() *Success
func (*GenericResponse) ProtoMessage ¶
func (*GenericResponse) ProtoMessage()
func (*GenericResponse) ProtoReflect ¶
func (x *GenericResponse) ProtoReflect() protoreflect.Message
func (*GenericResponse) Reset ¶
func (x *GenericResponse) Reset()
func (*GenericResponse) String ¶
func (x *GenericResponse) String() string
type GenericResponse_Error ¶
type GenericResponse_Error struct {
Error *Error `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}
type GenericResponse_Success ¶
type GenericResponse_Success struct {
Success *Success `protobuf:"bytes,1,opt,name=success,proto3,oneof"`
}
type InterfaceActionRequest ¶
type InterfaceActionRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*InterfaceActionRequest) Descriptor
deprecated
func (*InterfaceActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use InterfaceActionRequest.ProtoReflect.Descriptor instead.
func (*InterfaceActionRequest) GetId ¶
func (x *InterfaceActionRequest) GetId() string
func (*InterfaceActionRequest) ProtoMessage ¶
func (*InterfaceActionRequest) ProtoMessage()
func (*InterfaceActionRequest) ProtoReflect ¶
func (x *InterfaceActionRequest) ProtoReflect() protoreflect.Message
func (*InterfaceActionRequest) Reset ¶
func (x *InterfaceActionRequest) Reset()
func (*InterfaceActionRequest) String ¶
func (x *InterfaceActionRequest) String() string
type InterfaceInfo ¶
type InterfaceInfo struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
Status InterfaceInfo_State `protobuf:"varint,4,opt,name=status,proto3,enum=structures.InterfaceInfo_State" json:"status,omitempty"`
Added bool `protobuf:"varint,5,opt,name=added,proto3" json:"added,omitempty"`
// contains filtered or unexported fields
}
func (*InterfaceInfo) Descriptor
deprecated
func (*InterfaceInfo) Descriptor() ([]byte, []int)
Deprecated: Use InterfaceInfo.ProtoReflect.Descriptor instead.
func (*InterfaceInfo) GetAdded ¶
func (x *InterfaceInfo) GetAdded() bool
func (*InterfaceInfo) GetDescription ¶
func (x *InterfaceInfo) GetDescription() string
func (*InterfaceInfo) GetId ¶
func (x *InterfaceInfo) GetId() string
func (*InterfaceInfo) GetStatus ¶
func (x *InterfaceInfo) GetStatus() InterfaceInfo_State
func (*InterfaceInfo) GetType ¶
func (x *InterfaceInfo) GetType() string
func (*InterfaceInfo) ProtoMessage ¶
func (*InterfaceInfo) ProtoMessage()
func (*InterfaceInfo) ProtoReflect ¶
func (x *InterfaceInfo) ProtoReflect() protoreflect.Message
func (*InterfaceInfo) Reset ¶
func (x *InterfaceInfo) Reset()
func (*InterfaceInfo) String ¶
func (x *InterfaceInfo) String() string
type InterfaceInfo_State ¶
type InterfaceInfo_State int32
const ( InterfaceInfo_UP InterfaceInfo_State = 0 InterfaceInfo_DOWN InterfaceInfo_State = 1 InterfaceInfo_UNKNOWN InterfaceInfo_State = 2 )
func (InterfaceInfo_State) Descriptor ¶
func (InterfaceInfo_State) Descriptor() protoreflect.EnumDescriptor
func (InterfaceInfo_State) Enum ¶
func (x InterfaceInfo_State) Enum() *InterfaceInfo_State
func (InterfaceInfo_State) EnumDescriptor
deprecated
func (InterfaceInfo_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use InterfaceInfo_State.Descriptor instead.
func (InterfaceInfo_State) Number ¶
func (x InterfaceInfo_State) Number() protoreflect.EnumNumber
func (InterfaceInfo_State) String ¶
func (x InterfaceInfo_State) String() string
func (InterfaceInfo_State) Type ¶
func (InterfaceInfo_State) Type() protoreflect.EnumType
type InterfaceListResponse ¶
type InterfaceListResponse struct {
Interfaces []*InterfaceInfo `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
// contains filtered or unexported fields
}
func (*InterfaceListResponse) Descriptor
deprecated
func (*InterfaceListResponse) Descriptor() ([]byte, []int)
Deprecated: Use InterfaceListResponse.ProtoReflect.Descriptor instead.
func (*InterfaceListResponse) GetInterfaces ¶
func (x *InterfaceListResponse) GetInterfaces() []*InterfaceInfo
func (*InterfaceListResponse) ProtoMessage ¶
func (*InterfaceListResponse) ProtoMessage()
func (*InterfaceListResponse) ProtoReflect ¶
func (x *InterfaceListResponse) ProtoReflect() protoreflect.Message
func (*InterfaceListResponse) Reset ¶
func (x *InterfaceListResponse) Reset()
func (*InterfaceListResponse) String ¶
func (x *InterfaceListResponse) String() string
type LogEvent ¶ added in v1.0.1
type LogEvent struct {
UnixMs int64 `protobuf:"varint,1,opt,name=unix_ms,json=unixMs,proto3" json:"unix_ms,omitempty"`
Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*LogEvent) Descriptor
deprecated
added in
v1.0.1
func (*LogEvent) GetMessage ¶ added in v1.0.1
func (*LogEvent) ProtoMessage ¶ added in v1.0.1
func (*LogEvent) ProtoMessage()
func (*LogEvent) ProtoReflect ¶ added in v1.0.1
func (x *LogEvent) ProtoReflect() protoreflect.Message
type ManageAction ¶
type ManageAction int32
const ( ManageAction_START ManageAction = 0 ManageAction_STOP ManageAction = 1 ManageAction_STATUS ManageAction = 2 ManageAction_RESTART ManageAction = 3 )
func (ManageAction) Descriptor ¶
func (ManageAction) Descriptor() protoreflect.EnumDescriptor
func (ManageAction) Enum ¶
func (x ManageAction) Enum() *ManageAction
func (ManageAction) EnumDescriptor
deprecated
func (ManageAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use ManageAction.Descriptor instead.
func (ManageAction) Number ¶
func (x ManageAction) Number() protoreflect.EnumNumber
func (ManageAction) String ¶
func (x ManageAction) String() string
func (ManageAction) Type ¶
func (ManageAction) Type() protoreflect.EnumType
type ManageRequest ¶
type ManageRequest struct {
Act ManageAction `protobuf:"varint,1,opt,name=act,proto3,enum=structures.ManageAction" json:"act,omitempty"`
// contains filtered or unexported fields
}
func (*ManageRequest) Descriptor
deprecated
func (*ManageRequest) Descriptor() ([]byte, []int)
Deprecated: Use ManageRequest.ProtoReflect.Descriptor instead.
func (*ManageRequest) GetAct ¶
func (x *ManageRequest) GetAct() ManageAction
func (*ManageRequest) ProtoMessage ¶
func (*ManageRequest) ProtoMessage()
func (*ManageRequest) ProtoReflect ¶
func (x *ManageRequest) ProtoReflect() protoreflect.Message
func (*ManageRequest) Reset ¶
func (x *ManageRequest) Reset()
func (*ManageRequest) String ¶
func (x *ManageRequest) String() string
type QueryStats ¶ added in v1.0.1
type QueryStats struct {
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
CacheHits int64 `protobuf:"varint,2,opt,name=cache_hits,json=cacheHits,proto3" json:"cache_hits,omitempty"`
Custom int64 `protobuf:"varint,3,opt,name=custom,proto3" json:"custom,omitempty"`
Doh int64 `protobuf:"varint,4,opt,name=doh,proto3" json:"doh,omitempty"`
Servfail int64 `protobuf:"varint,5,opt,name=servfail,proto3" json:"servfail,omitempty"`
Refused int64 `protobuf:"varint,6,opt,name=refused,proto3" json:"refused,omitempty"`
Nxdomain int64 `protobuf:"varint,7,opt,name=nxdomain,proto3" json:"nxdomain,omitempty"`
// contains filtered or unexported fields
}
func (*QueryStats) Descriptor
deprecated
added in
v1.0.1
func (*QueryStats) Descriptor() ([]byte, []int)
Deprecated: Use QueryStats.ProtoReflect.Descriptor instead.
func (*QueryStats) GetCacheHits ¶ added in v1.0.1
func (x *QueryStats) GetCacheHits() int64
func (*QueryStats) GetCustom ¶ added in v1.0.1
func (x *QueryStats) GetCustom() int64
func (*QueryStats) GetDoh ¶ added in v1.0.1
func (x *QueryStats) GetDoh() int64
func (*QueryStats) GetNxdomain ¶ added in v1.0.1
func (x *QueryStats) GetNxdomain() int64
func (*QueryStats) GetRefused ¶ added in v1.0.1
func (x *QueryStats) GetRefused() int64
func (*QueryStats) GetServfail ¶ added in v1.0.1
func (x *QueryStats) GetServfail() int64
func (*QueryStats) GetTotal ¶ added in v1.0.1
func (x *QueryStats) GetTotal() int64
func (*QueryStats) ProtoMessage ¶ added in v1.0.1
func (*QueryStats) ProtoMessage()
func (*QueryStats) ProtoReflect ¶ added in v1.0.1
func (x *QueryStats) ProtoReflect() protoreflect.Message
func (*QueryStats) Reset ¶ added in v1.0.1
func (x *QueryStats) Reset()
func (*QueryStats) String ¶ added in v1.0.1
func (x *QueryStats) String() string
type StatusResponse ¶ added in v1.0.1
type StatusResponse struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
UptimeSeconds int64 `protobuf:"varint,2,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"`
DnsRunning bool `protobuf:"varint,3,opt,name=dns_running,json=dnsRunning,proto3" json:"dns_running,omitempty"`
DnsPort int32 `protobuf:"varint,4,opt,name=dns_port,json=dnsPort,proto3" json:"dns_port,omitempty"`
TproxyEnabled bool `protobuf:"varint,5,opt,name=tproxy_enabled,json=tproxyEnabled,proto3" json:"tproxy_enabled,omitempty"`
UnblockRuleCount int32 `protobuf:"varint,6,opt,name=unblock_rule_count,json=unblockRuleCount,proto3" json:"unblock_rule_count,omitempty"`
Chains []*ChainStatus `protobuf:"bytes,7,rep,name=chains,proto3" json:"chains,omitempty"`
DohServers []*DohServerStatus `protobuf:"bytes,8,rep,name=doh_servers,json=dohServers,proto3" json:"doh_servers,omitempty"`
QueryStats *QueryStats `protobuf:"bytes,9,opt,name=query_stats,json=queryStats,proto3" json:"query_stats,omitempty"`
RecentEvents []*LogEvent `protobuf:"bytes,10,rep,name=recent_events,json=recentEvents,proto3" json:"recent_events,omitempty"`
IpsetEntriesV4 int64 `protobuf:"varint,11,opt,name=ipset_entries_v4,json=ipsetEntriesV4,proto3" json:"ipset_entries_v4,omitempty"`
IpsetEntriesV6 int64 `protobuf:"varint,12,opt,name=ipset_entries_v6,json=ipsetEntriesV6,proto3" json:"ipset_entries_v6,omitempty"`
// contains filtered or unexported fields
}
func (*StatusResponse) Descriptor
deprecated
added in
v1.0.1
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetChains ¶ added in v1.0.1
func (x *StatusResponse) GetChains() []*ChainStatus
func (*StatusResponse) GetDnsPort ¶ added in v1.0.1
func (x *StatusResponse) GetDnsPort() int32
func (*StatusResponse) GetDnsRunning ¶ added in v1.0.1
func (x *StatusResponse) GetDnsRunning() bool
func (*StatusResponse) GetDohServers ¶ added in v1.0.1
func (x *StatusResponse) GetDohServers() []*DohServerStatus
func (*StatusResponse) GetIpsetEntriesV4 ¶ added in v1.0.1
func (x *StatusResponse) GetIpsetEntriesV4() int64
func (*StatusResponse) GetIpsetEntriesV6 ¶ added in v1.0.1
func (x *StatusResponse) GetIpsetEntriesV6() int64
func (*StatusResponse) GetQueryStats ¶ added in v1.0.1
func (x *StatusResponse) GetQueryStats() *QueryStats
func (*StatusResponse) GetRecentEvents ¶ added in v1.0.1
func (x *StatusResponse) GetRecentEvents() []*LogEvent
func (*StatusResponse) GetTproxyEnabled ¶ added in v1.0.1
func (x *StatusResponse) GetTproxyEnabled() bool
func (*StatusResponse) GetUnblockRuleCount ¶ added in v1.0.1
func (x *StatusResponse) GetUnblockRuleCount() int32
func (*StatusResponse) GetUptimeSeconds ¶ added in v1.0.1
func (x *StatusResponse) GetUptimeSeconds() int64
func (*StatusResponse) GetVersion ¶ added in v1.0.1
func (x *StatusResponse) GetVersion() string
func (*StatusResponse) ProtoMessage ¶ added in v1.0.1
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶ added in v1.0.1
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶ added in v1.0.1
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶ added in v1.0.1
func (x *StatusResponse) String() string
type Success ¶
type Success struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Success) Descriptor
deprecated
func (*Success) GetMessage ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) ProtoReflect ¶
func (x *Success) ProtoReflect() protoreflect.Message
type UnblockAddRequest ¶
type UnblockAddRequest struct {
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
// contains filtered or unexported fields
}
func (*UnblockAddRequest) Descriptor
deprecated
func (*UnblockAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnblockAddRequest.ProtoReflect.Descriptor instead.
func (*UnblockAddRequest) GetChainName ¶
func (x *UnblockAddRequest) GetChainName() string
func (*UnblockAddRequest) GetDomain ¶
func (x *UnblockAddRequest) GetDomain() string
func (*UnblockAddRequest) ProtoMessage ¶
func (*UnblockAddRequest) ProtoMessage()
func (*UnblockAddRequest) ProtoReflect ¶
func (x *UnblockAddRequest) ProtoReflect() protoreflect.Message
func (*UnblockAddRequest) Reset ¶
func (x *UnblockAddRequest) Reset()
func (*UnblockAddRequest) String ¶
func (x *UnblockAddRequest) String() string
type UnblockDelRequest ¶
type UnblockDelRequest struct {
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
// contains filtered or unexported fields
}
func (*UnblockDelRequest) Descriptor
deprecated
func (*UnblockDelRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnblockDelRequest.ProtoReflect.Descriptor instead.
func (*UnblockDelRequest) GetDomain ¶
func (x *UnblockDelRequest) GetDomain() string
func (*UnblockDelRequest) ProtoMessage ¶
func (*UnblockDelRequest) ProtoMessage()
func (*UnblockDelRequest) ProtoReflect ¶
func (x *UnblockDelRequest) ProtoReflect() protoreflect.Message
func (*UnblockDelRequest) Reset ¶
func (x *UnblockDelRequest) Reset()
func (*UnblockDelRequest) String ¶
func (x *UnblockDelRequest) String() string
type UnblockInfo ¶
type UnblockInfo struct {
TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
Rules []string `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
func (*UnblockInfo) Descriptor
deprecated
func (*UnblockInfo) Descriptor() ([]byte, []int)
Deprecated: Use UnblockInfo.ProtoReflect.Descriptor instead.
func (*UnblockInfo) GetChainName ¶
func (x *UnblockInfo) GetChainName() string
func (*UnblockInfo) GetRules ¶
func (x *UnblockInfo) GetRules() []string
func (*UnblockInfo) GetTypeName ¶
func (x *UnblockInfo) GetTypeName() string
func (*UnblockInfo) ProtoMessage ¶
func (*UnblockInfo) ProtoMessage()
func (*UnblockInfo) ProtoReflect ¶
func (x *UnblockInfo) ProtoReflect() protoreflect.Message
func (*UnblockInfo) Reset ¶
func (x *UnblockInfo) Reset()
func (*UnblockInfo) String ¶
func (x *UnblockInfo) String() string
type UnblockListResponse ¶
type UnblockListResponse struct {
Rules []*UnblockInfo `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
func (*UnblockListResponse) Descriptor
deprecated
func (*UnblockListResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnblockListResponse.ProtoReflect.Descriptor instead.
func (*UnblockListResponse) GetRules ¶
func (x *UnblockListResponse) GetRules() []*UnblockInfo
func (*UnblockListResponse) ProtoMessage ¶
func (*UnblockListResponse) ProtoMessage()
func (*UnblockListResponse) ProtoReflect ¶
func (x *UnblockListResponse) ProtoReflect() protoreflect.Message
func (*UnblockListResponse) Reset ¶
func (x *UnblockListResponse) Reset()
func (*UnblockListResponse) String ¶
func (x *UnblockListResponse) String() string
type UnimplementedVpnerManagerServer ¶
type UnimplementedVpnerManagerServer struct{}
UnimplementedVpnerManagerServer 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 (UnimplementedVpnerManagerServer) DnsManage ¶
func (UnimplementedVpnerManagerServer) DnsManage(context.Context, *ManageRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) HookRestore ¶
func (UnimplementedVpnerManagerServer) HookRestore(context.Context, *Empty) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) InterfaceAdd ¶
func (UnimplementedVpnerManagerServer) InterfaceAdd(context.Context, *InterfaceActionRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) InterfaceDel ¶
func (UnimplementedVpnerManagerServer) InterfaceDel(context.Context, *InterfaceActionRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) InterfaceList ¶
func (UnimplementedVpnerManagerServer) InterfaceList(context.Context, *Empty) (*InterfaceListResponse, error)
func (UnimplementedVpnerManagerServer) InterfaceScan ¶
func (UnimplementedVpnerManagerServer) InterfaceScan(context.Context, *Empty) (*InterfaceListResponse, error)
func (UnimplementedVpnerManagerServer) Status ¶ added in v1.0.1
func (UnimplementedVpnerManagerServer) Status(context.Context, *Empty) (*StatusResponse, error)
func (UnimplementedVpnerManagerServer) SyncRules ¶ added in v1.0.1
func (UnimplementedVpnerManagerServer) SyncRules(context.Context, *Empty) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) UnblockAdd ¶
func (UnimplementedVpnerManagerServer) UnblockAdd(context.Context, *UnblockAddRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) UnblockDel ¶
func (UnimplementedVpnerManagerServer) UnblockDel(context.Context, *UnblockDelRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) UnblockList ¶
func (UnimplementedVpnerManagerServer) UnblockList(context.Context, *Empty) (*UnblockListResponse, error)
func (UnimplementedVpnerManagerServer) XrayCreate ¶
func (UnimplementedVpnerManagerServer) XrayCreate(context.Context, *XrayCreateRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) XrayDelete ¶
func (UnimplementedVpnerManagerServer) XrayDelete(context.Context, *XrayRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) XrayList ¶
func (UnimplementedVpnerManagerServer) XrayList(context.Context, *Empty) (*XrayListResponse, error)
func (UnimplementedVpnerManagerServer) XrayManage ¶
func (UnimplementedVpnerManagerServer) XrayManage(context.Context, *XrayManageRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) XraySetAutorun ¶
func (UnimplementedVpnerManagerServer) XraySetAutorun(context.Context, *XrayAutoRunRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) XrayTest ¶ added in v1.0.1
func (UnimplementedVpnerManagerServer) XrayTest(context.Context, *XrayRequest) (*GenericResponse, error)
func (UnimplementedVpnerManagerServer) XrayUpdate ¶ added in v0.1.2
func (UnimplementedVpnerManagerServer) XrayUpdate(context.Context, *XrayUpdateRequest) (*GenericResponse, error)
type UnsafeVpnerManagerServer ¶
type UnsafeVpnerManagerServer interface {
// contains filtered or unexported methods
}
UnsafeVpnerManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VpnerManagerServer will result in compilation errors.
type VpnerManagerClient ¶
type VpnerManagerClient interface {
// Unblock rules
UnblockList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UnblockListResponse, error)
UnblockAdd(ctx context.Context, in *UnblockAddRequest, opts ...grpc.CallOption) (*GenericResponse, error)
UnblockDel(ctx context.Context, in *UnblockDelRequest, opts ...grpc.CallOption) (*GenericResponse, error)
// Interfaces
InterfaceList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*InterfaceListResponse, error)
InterfaceScan(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*InterfaceListResponse, error)
InterfaceAdd(ctx context.Context, in *InterfaceActionRequest, opts ...grpc.CallOption) (*GenericResponse, error)
InterfaceDel(ctx context.Context, in *InterfaceActionRequest, opts ...grpc.CallOption) (*GenericResponse, error)
// DNS management
DnsManage(ctx context.Context, in *ManageRequest, opts ...grpc.CallOption) (*GenericResponse, error)
// xray manager
XrayCreate(ctx context.Context, in *XrayCreateRequest, opts ...grpc.CallOption) (*GenericResponse, error)
XrayUpdate(ctx context.Context, in *XrayUpdateRequest, opts ...grpc.CallOption) (*GenericResponse, error)
XrayDelete(ctx context.Context, in *XrayRequest, opts ...grpc.CallOption) (*GenericResponse, error)
XrayList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*XrayListResponse, error)
XrayManage(ctx context.Context, in *XrayManageRequest, opts ...grpc.CallOption) (*GenericResponse, error)
XrayTest(ctx context.Context, in *XrayRequest, opts ...grpc.CallOption) (*GenericResponse, error)
XraySetAutorun(ctx context.Context, in *XrayAutoRunRequest, opts ...grpc.CallOption) (*GenericResponse, error)
HookRestore(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GenericResponse, error)
// Daemon-wide status snapshot.
Status(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StatusResponse, error)
// Re-populate ipset entries for all unblock rules (static IPs + concrete domains).
SyncRules(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GenericResponse, error)
}
VpnerManagerClient is the client API for VpnerManager 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 NewVpnerManagerClient ¶
func NewVpnerManagerClient(cc grpc.ClientConnInterface) VpnerManagerClient
type VpnerManagerServer ¶
type VpnerManagerServer interface {
// Unblock rules
UnblockList(context.Context, *Empty) (*UnblockListResponse, error)
UnblockAdd(context.Context, *UnblockAddRequest) (*GenericResponse, error)
UnblockDel(context.Context, *UnblockDelRequest) (*GenericResponse, error)
// Interfaces
InterfaceList(context.Context, *Empty) (*InterfaceListResponse, error)
InterfaceScan(context.Context, *Empty) (*InterfaceListResponse, error)
InterfaceAdd(context.Context, *InterfaceActionRequest) (*GenericResponse, error)
InterfaceDel(context.Context, *InterfaceActionRequest) (*GenericResponse, error)
// DNS management
DnsManage(context.Context, *ManageRequest) (*GenericResponse, error)
// xray manager
XrayCreate(context.Context, *XrayCreateRequest) (*GenericResponse, error)
XrayUpdate(context.Context, *XrayUpdateRequest) (*GenericResponse, error)
XrayDelete(context.Context, *XrayRequest) (*GenericResponse, error)
XrayList(context.Context, *Empty) (*XrayListResponse, error)
XrayManage(context.Context, *XrayManageRequest) (*GenericResponse, error)
XrayTest(context.Context, *XrayRequest) (*GenericResponse, error)
XraySetAutorun(context.Context, *XrayAutoRunRequest) (*GenericResponse, error)
HookRestore(context.Context, *Empty) (*GenericResponse, error)
// Daemon-wide status snapshot.
Status(context.Context, *Empty) (*StatusResponse, error)
// Re-populate ipset entries for all unblock rules (static IPs + concrete domains).
SyncRules(context.Context, *Empty) (*GenericResponse, error)
// contains filtered or unexported methods
}
VpnerManagerServer is the server API for VpnerManager service. All implementations must embed UnimplementedVpnerManagerServer for forward compatibility.
type XrayAutoRunRequest ¶
type XrayAutoRunRequest struct {
ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
AutoRun bool `protobuf:"varint,2,opt,name=auto_run,json=autoRun,proto3" json:"auto_run,omitempty"`
// contains filtered or unexported fields
}
func (*XrayAutoRunRequest) Descriptor
deprecated
func (*XrayAutoRunRequest) Descriptor() ([]byte, []int)
Deprecated: Use XrayAutoRunRequest.ProtoReflect.Descriptor instead.
func (*XrayAutoRunRequest) GetAutoRun ¶
func (x *XrayAutoRunRequest) GetAutoRun() bool
func (*XrayAutoRunRequest) GetChainName ¶
func (x *XrayAutoRunRequest) GetChainName() string
func (*XrayAutoRunRequest) ProtoMessage ¶
func (*XrayAutoRunRequest) ProtoMessage()
func (*XrayAutoRunRequest) ProtoReflect ¶
func (x *XrayAutoRunRequest) ProtoReflect() protoreflect.Message
func (*XrayAutoRunRequest) Reset ¶
func (x *XrayAutoRunRequest) Reset()
func (*XrayAutoRunRequest) String ¶
func (x *XrayAutoRunRequest) String() string
type XrayCreateRequest ¶
type XrayCreateRequest struct {
Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
AutoRun bool `protobuf:"varint,2,opt,name=auto_run,json=autoRun,proto3" json:"auto_run,omitempty"`
// contains filtered or unexported fields
}
func (*XrayCreateRequest) Descriptor
deprecated
func (*XrayCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use XrayCreateRequest.ProtoReflect.Descriptor instead.
func (*XrayCreateRequest) GetAutoRun ¶
func (x *XrayCreateRequest) GetAutoRun() bool
func (*XrayCreateRequest) GetLink ¶
func (x *XrayCreateRequest) GetLink() string
func (*XrayCreateRequest) ProtoMessage ¶
func (*XrayCreateRequest) ProtoMessage()
func (*XrayCreateRequest) ProtoReflect ¶
func (x *XrayCreateRequest) ProtoReflect() protoreflect.Message
func (*XrayCreateRequest) Reset ¶
func (x *XrayCreateRequest) Reset()
func (*XrayCreateRequest) String ¶
func (x *XrayCreateRequest) String() string
type XrayInfo ¶
type XrayInfo struct {
ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
Status bool `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
AutoRun bool `protobuf:"varint,6,opt,name=auto_run,json=autoRun,proto3" json:"auto_run,omitempty"`
// contains filtered or unexported fields
}
func (*XrayInfo) Descriptor
deprecated
func (*XrayInfo) GetAutoRun ¶
func (*XrayInfo) GetChainName ¶
func (*XrayInfo) ProtoMessage ¶
func (*XrayInfo) ProtoMessage()
func (*XrayInfo) ProtoReflect ¶
func (x *XrayInfo) ProtoReflect() protoreflect.Message
type XrayListResponse ¶
type XrayListResponse struct {
List []*XrayInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*XrayListResponse) Descriptor
deprecated
func (*XrayListResponse) Descriptor() ([]byte, []int)
Deprecated: Use XrayListResponse.ProtoReflect.Descriptor instead.
func (*XrayListResponse) GetList ¶
func (x *XrayListResponse) GetList() []*XrayInfo
func (*XrayListResponse) ProtoMessage ¶
func (*XrayListResponse) ProtoMessage()
func (*XrayListResponse) ProtoReflect ¶
func (x *XrayListResponse) ProtoReflect() protoreflect.Message
func (*XrayListResponse) Reset ¶
func (x *XrayListResponse) Reset()
func (*XrayListResponse) String ¶
func (x *XrayListResponse) String() string
type XrayManageRequest ¶
type XrayManageRequest struct {
ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
Act ManageAction `protobuf:"varint,2,opt,name=act,proto3,enum=structures.ManageAction" json:"act,omitempty"`
// contains filtered or unexported fields
}
func (*XrayManageRequest) Descriptor
deprecated
func (*XrayManageRequest) Descriptor() ([]byte, []int)
Deprecated: Use XrayManageRequest.ProtoReflect.Descriptor instead.
func (*XrayManageRequest) GetAct ¶
func (x *XrayManageRequest) GetAct() ManageAction
func (*XrayManageRequest) GetChainName ¶
func (x *XrayManageRequest) GetChainName() string
func (*XrayManageRequest) ProtoMessage ¶
func (*XrayManageRequest) ProtoMessage()
func (*XrayManageRequest) ProtoReflect ¶
func (x *XrayManageRequest) ProtoReflect() protoreflect.Message
func (*XrayManageRequest) Reset ¶
func (x *XrayManageRequest) Reset()
func (*XrayManageRequest) String ¶
func (x *XrayManageRequest) String() string
type XrayRequest ¶
type XrayRequest struct {
ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
// contains filtered or unexported fields
}
func (*XrayRequest) Descriptor
deprecated
func (*XrayRequest) Descriptor() ([]byte, []int)
Deprecated: Use XrayRequest.ProtoReflect.Descriptor instead.
func (*XrayRequest) GetChainName ¶
func (x *XrayRequest) GetChainName() string
func (*XrayRequest) ProtoMessage ¶
func (*XrayRequest) ProtoMessage()
func (*XrayRequest) ProtoReflect ¶
func (x *XrayRequest) ProtoReflect() protoreflect.Message
func (*XrayRequest) Reset ¶
func (x *XrayRequest) Reset()
func (*XrayRequest) String ¶
func (x *XrayRequest) String() string
type XrayUpdateRequest ¶ added in v0.1.2
type XrayUpdateRequest struct {
ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
Link string `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"`
// contains filtered or unexported fields
}
func (*XrayUpdateRequest) Descriptor
deprecated
added in
v0.1.2
func (*XrayUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use XrayUpdateRequest.ProtoReflect.Descriptor instead.
func (*XrayUpdateRequest) GetChainName ¶ added in v0.1.2
func (x *XrayUpdateRequest) GetChainName() string
func (*XrayUpdateRequest) GetLink ¶ added in v0.1.2
func (x *XrayUpdateRequest) GetLink() string
func (*XrayUpdateRequest) ProtoMessage ¶ added in v0.1.2
func (*XrayUpdateRequest) ProtoMessage()
func (*XrayUpdateRequest) ProtoReflect ¶ added in v0.1.2
func (x *XrayUpdateRequest) ProtoReflect() protoreflect.Message
func (*XrayUpdateRequest) Reset ¶ added in v0.1.2
func (x *XrayUpdateRequest) Reset()
func (*XrayUpdateRequest) String ¶ added in v0.1.2
func (x *XrayUpdateRequest) String() string