840 lines
25 KiB
Go
840 lines
25 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.0
|
|
// source: proto/agent.proto
|
|
|
|
package proto
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type GetClientConfigsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetClientConfigsRequest) Reset() {
|
|
*x = GetClientConfigsRequest{}
|
|
mi := &file_proto_agent_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetClientConfigsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetClientConfigsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetClientConfigsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetClientConfigsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetClientConfigsRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ClientConfig struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
|
|
Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
AllowedIps string `protobuf:"bytes,5,opt,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClientConfig) Reset() {
|
|
*x = ClientConfig{}
|
|
mi := &file_proto_agent_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClientConfig) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClientConfig) ProtoMessage() {}
|
|
|
|
func (x *ClientConfig) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
|
|
func (*ClientConfig) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ClientConfig) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClientConfig) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClientConfig) GetPrivateKey() string {
|
|
if x != nil {
|
|
return x.PrivateKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClientConfig) GetEndpoint() string {
|
|
if x != nil {
|
|
return x.Endpoint
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClientConfig) GetAllowedIps() string {
|
|
if x != nil {
|
|
return x.AllowedIps
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClientConfig) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetClientConfigsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
Clients []*ClientConfig `protobuf:"bytes,3,rep,name=clients,proto3" json:"clients,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetClientConfigsResponse) Reset() {
|
|
*x = GetClientConfigsResponse{}
|
|
mi := &file_proto_agent_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetClientConfigsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetClientConfigsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetClientConfigsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetClientConfigsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetClientConfigsResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetClientConfigsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetClientConfigsResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetClientConfigsResponse) GetClients() []*ClientConfig {
|
|
if x != nil {
|
|
return x.Clients
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterClientRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
AllowedIps string `protobuf:"bytes,2,opt,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterClientRequest) Reset() {
|
|
*x = RegisterClientRequest{}
|
|
mi := &file_proto_agent_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterClientRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterClientRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RegisterClientRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterClientRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RegisterClientRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterClientRequest) GetAllowedIps() string {
|
|
if x != nil {
|
|
return x.AllowedIps
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RegisterClientResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
Client *ClientConfig `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterClientResponse) Reset() {
|
|
*x = RegisterClientResponse{}
|
|
mi := &file_proto_agent_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterClientResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterClientResponse) ProtoMessage() {}
|
|
|
|
func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RegisterClientResponse.ProtoReflect.Descriptor instead.
|
|
func (*RegisterClientResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RegisterClientResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *RegisterClientResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterClientResponse) GetClient() *ClientConfig {
|
|
if x != nil {
|
|
return x.Client
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UnregisterClientRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnregisterClientRequest) Reset() {
|
|
*x = UnregisterClientRequest{}
|
|
mi := &file_proto_agent_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnregisterClientRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnregisterClientRequest) ProtoMessage() {}
|
|
|
|
func (x *UnregisterClientRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UnregisterClientRequest.ProtoReflect.Descriptor instead.
|
|
func (*UnregisterClientRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *UnregisterClientRequest) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnregisterClientResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnregisterClientResponse) Reset() {
|
|
*x = UnregisterClientResponse{}
|
|
mi := &file_proto_agent_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnregisterClientResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnregisterClientResponse) ProtoMessage() {}
|
|
|
|
func (x *UnregisterClientResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UnregisterClientResponse.ProtoReflect.Descriptor instead.
|
|
func (*UnregisterClientResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UnregisterClientResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UnregisterClientResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetServerStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetServerStatusRequest) Reset() {
|
|
*x = GetServerStatusRequest{}
|
|
mi := &file_proto_agent_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetServerStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetServerStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *GetServerStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetServerStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetServerStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
type GetServerStatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
InterfaceName string `protobuf:"bytes,3,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
|
|
PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
ListeningPort string `protobuf:"bytes,5,opt,name=listening_port,json=listeningPort,proto3" json:"listening_port,omitempty"`
|
|
PeersCount int32 `protobuf:"varint,6,opt,name=peers_count,json=peersCount,proto3" json:"peers_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) Reset() {
|
|
*x = GetServerStatusResponse{}
|
|
mi := &file_proto_agent_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetServerStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *GetServerStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetServerStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetServerStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) GetInterfaceName() string {
|
|
if x != nil {
|
|
return x.InterfaceName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) GetListeningPort() string {
|
|
if x != nil {
|
|
return x.ListeningPort
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetServerStatusResponse) GetPeersCount() int32 {
|
|
if x != nil {
|
|
return x.PeersCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PingHostsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PingHostsRequest) Reset() {
|
|
*x = PingHostsRequest{}
|
|
mi := &file_proto_agent_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PingHostsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PingHostsRequest) ProtoMessage() {}
|
|
|
|
func (x *PingHostsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PingHostsRequest.ProtoReflect.Descriptor instead.
|
|
func (*PingHostsRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *PingHostsRequest) GetHosts() []string {
|
|
if x != nil {
|
|
return x.Hosts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PingResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
|
|
LatencyMs float64 `protobuf:"fixed64,2,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"` // -1 if unreachable
|
|
Reachable bool `protobuf:"varint,3,opt,name=reachable,proto3" json:"reachable,omitempty"`
|
|
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PingResult) Reset() {
|
|
*x = PingResult{}
|
|
mi := &file_proto_agent_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PingResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PingResult) ProtoMessage() {}
|
|
|
|
func (x *PingResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PingResult.ProtoReflect.Descriptor instead.
|
|
func (*PingResult) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *PingResult) GetHost() string {
|
|
if x != nil {
|
|
return x.Host
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PingResult) GetLatencyMs() float64 {
|
|
if x != nil {
|
|
return x.LatencyMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PingResult) GetReachable() bool {
|
|
if x != nil {
|
|
return x.Reachable
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PingResult) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PingHostsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
Results []*PingResult `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PingHostsResponse) Reset() {
|
|
*x = PingHostsResponse{}
|
|
mi := &file_proto_agent_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PingHostsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PingHostsResponse) ProtoMessage() {}
|
|
|
|
func (x *PingHostsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_agent_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PingHostsResponse.ProtoReflect.Descriptor instead.
|
|
func (*PingHostsResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_agent_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *PingHostsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PingHostsResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PingHostsResponse) GetResults() []*PingResult {
|
|
if x != nil {
|
|
return x.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_proto_agent_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_agent_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x11proto/agent.proto\x12\x05agent\"\x19\n" +
|
|
"\x17GetClientConfigsRequest\"\xbe\x01\n" +
|
|
"\fClientConfig\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x02 \x01(\tR\tpublicKey\x12\x1f\n" +
|
|
"\vprivate_key\x18\x03 \x01(\tR\n" +
|
|
"privateKey\x12\x1a\n" +
|
|
"\bendpoint\x18\x04 \x01(\tR\bendpoint\x12\x1f\n" +
|
|
"\vallowed_ips\x18\x05 \x01(\tR\n" +
|
|
"allowedIps\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\x06 \x01(\tR\tcreatedAt\"y\n" +
|
|
"\x18GetClientConfigsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error\x12-\n" +
|
|
"\aclients\x18\x03 \x03(\v2\x13.agent.ClientConfigR\aclients\"L\n" +
|
|
"\x15RegisterClientRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n" +
|
|
"\vallowed_ips\x18\x02 \x01(\tR\n" +
|
|
"allowedIps\"u\n" +
|
|
"\x16RegisterClientResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error\x12+\n" +
|
|
"\x06client\x18\x03 \x01(\v2\x13.agent.ClientConfigR\x06client\"8\n" +
|
|
"\x17UnregisterClientRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x01 \x01(\tR\tpublicKey\"J\n" +
|
|
"\x18UnregisterClientResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error\"\x18\n" +
|
|
"\x16GetServerStatusRequest\"\xd7\x01\n" +
|
|
"\x17GetServerStatusResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error\x12%\n" +
|
|
"\x0einterface_name\x18\x03 \x01(\tR\rinterfaceName\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x04 \x01(\tR\tpublicKey\x12%\n" +
|
|
"\x0elistening_port\x18\x05 \x01(\tR\rlisteningPort\x12\x1f\n" +
|
|
"\vpeers_count\x18\x06 \x01(\x05R\n" +
|
|
"peersCount\"(\n" +
|
|
"\x10PingHostsRequest\x12\x14\n" +
|
|
"\x05hosts\x18\x01 \x03(\tR\x05hosts\"s\n" +
|
|
"\n" +
|
|
"PingResult\x12\x12\n" +
|
|
"\x04host\x18\x01 \x01(\tR\x04host\x12\x1d\n" +
|
|
"\n" +
|
|
"latency_ms\x18\x02 \x01(\x01R\tlatencyMs\x12\x1c\n" +
|
|
"\treachable\x18\x03 \x01(\bR\treachable\x12\x14\n" +
|
|
"\x05error\x18\x04 \x01(\tR\x05error\"p\n" +
|
|
"\x11PingHostsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error\x12+\n" +
|
|
"\aresults\x18\x03 \x03(\v2\x11.agent.PingResultR\aresults2\x9b\x03\n" +
|
|
"\x0eWireGuardAgent\x12S\n" +
|
|
"\x10GetClientConfigs\x12\x1e.agent.GetClientConfigsRequest\x1a\x1f.agent.GetClientConfigsResponse\x12M\n" +
|
|
"\x0eRegisterClient\x12\x1c.agent.RegisterClientRequest\x1a\x1d.agent.RegisterClientResponse\x12S\n" +
|
|
"\x10UnregisterClient\x12\x1e.agent.UnregisterClientRequest\x1a\x1f.agent.UnregisterClientResponse\x12P\n" +
|
|
"\x0fGetServerStatus\x12\x1d.agent.GetServerStatusRequest\x1a\x1e.agent.GetServerStatusResponse\x12>\n" +
|
|
"\tPingHosts\x12\x17.agent.PingHostsRequest\x1a\x18.agent.PingHostsResponseB\x13Z\x11l_vpn_proto/protob\x06proto3"
|
|
|
|
var (
|
|
file_proto_agent_proto_rawDescOnce sync.Once
|
|
file_proto_agent_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_agent_proto_rawDescGZIP() []byte {
|
|
file_proto_agent_proto_rawDescOnce.Do(func() {
|
|
file_proto_agent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_agent_proto_rawDesc), len(file_proto_agent_proto_rawDesc)))
|
|
})
|
|
return file_proto_agent_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_proto_agent_proto_goTypes = []any{
|
|
(*GetClientConfigsRequest)(nil), // 0: agent.GetClientConfigsRequest
|
|
(*ClientConfig)(nil), // 1: agent.ClientConfig
|
|
(*GetClientConfigsResponse)(nil), // 2: agent.GetClientConfigsResponse
|
|
(*RegisterClientRequest)(nil), // 3: agent.RegisterClientRequest
|
|
(*RegisterClientResponse)(nil), // 4: agent.RegisterClientResponse
|
|
(*UnregisterClientRequest)(nil), // 5: agent.UnregisterClientRequest
|
|
(*UnregisterClientResponse)(nil), // 6: agent.UnregisterClientResponse
|
|
(*GetServerStatusRequest)(nil), // 7: agent.GetServerStatusRequest
|
|
(*GetServerStatusResponse)(nil), // 8: agent.GetServerStatusResponse
|
|
(*PingHostsRequest)(nil), // 9: agent.PingHostsRequest
|
|
(*PingResult)(nil), // 10: agent.PingResult
|
|
(*PingHostsResponse)(nil), // 11: agent.PingHostsResponse
|
|
}
|
|
var file_proto_agent_proto_depIdxs = []int32{
|
|
1, // 0: agent.GetClientConfigsResponse.clients:type_name -> agent.ClientConfig
|
|
1, // 1: agent.RegisterClientResponse.client:type_name -> agent.ClientConfig
|
|
10, // 2: agent.PingHostsResponse.results:type_name -> agent.PingResult
|
|
0, // 3: agent.WireGuardAgent.GetClientConfigs:input_type -> agent.GetClientConfigsRequest
|
|
3, // 4: agent.WireGuardAgent.RegisterClient:input_type -> agent.RegisterClientRequest
|
|
5, // 5: agent.WireGuardAgent.UnregisterClient:input_type -> agent.UnregisterClientRequest
|
|
7, // 6: agent.WireGuardAgent.GetServerStatus:input_type -> agent.GetServerStatusRequest
|
|
9, // 7: agent.WireGuardAgent.PingHosts:input_type -> agent.PingHostsRequest
|
|
2, // 8: agent.WireGuardAgent.GetClientConfigs:output_type -> agent.GetClientConfigsResponse
|
|
4, // 9: agent.WireGuardAgent.RegisterClient:output_type -> agent.RegisterClientResponse
|
|
6, // 10: agent.WireGuardAgent.UnregisterClient:output_type -> agent.UnregisterClientResponse
|
|
8, // 11: agent.WireGuardAgent.GetServerStatus:output_type -> agent.GetServerStatusResponse
|
|
11, // 12: agent.WireGuardAgent.PingHosts:output_type -> agent.PingHostsResponse
|
|
8, // [8:13] is the sub-list for method output_type
|
|
3, // [3:8] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_agent_proto_init() }
|
|
func file_proto_agent_proto_init() {
|
|
if File_proto_agent_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_agent_proto_rawDesc), len(file_proto_agent_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_agent_proto_goTypes,
|
|
DependencyIndexes: file_proto_agent_proto_depIdxs,
|
|
MessageInfos: file_proto_agent_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_agent_proto = out.File
|
|
file_proto_agent_proto_goTypes = nil
|
|
file_proto_agent_proto_depIdxs = nil
|
|
}
|