pb

package
v0.0.0-...-851e5e8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RespondToInviteErrorCode_name = map[int32]string{
		0: "UNKNOWN",
		1: "NO_SUCH_INVITATION",
		2: "DEVICE_COUNT",
	}
	RespondToInviteErrorCode_value = map[string]int32{
		"UNKNOWN":            0,
		"NO_SUCH_INVITATION": 1,
		"DEVICE_COUNT":       2,
	}
)

Enum value maps for RespondToInviteErrorCode.

View Source
var (
	InviteResponseErrorCode_name = map[int32]string{
		0: "ALREADY_EXISTS",
		1: "INVALID_EMAIL",
		2: "SAME_ACCOUNT_EMAIL",
		3: "LIMIT_REACHED",
		4: "PEER_COUNT",
	}
	InviteResponseErrorCode_value = map[string]int32{
		"ALREADY_EXISTS":     0,
		"INVALID_EMAIL":      1,
		"SAME_ACCOUNT_EMAIL": 2,
		"LIMIT_REACHED":      3,
		"PEER_COUNT":         4,
	}
)

Enum value maps for InviteResponseErrorCode.

View Source
var (
	PeerStatus_name = map[int32]string{
		0: "DISCONNECTED",
		1: "CONNECTED",
	}
	PeerStatus_value = map[string]int32{
		"DISCONNECTED": 0,
		"CONNECTED":    1,
	}
)

Enum value maps for PeerStatus.

View Source
var (
	UpdatePeerErrorCode_name = map[int32]string{
		0: "PEER_NOT_FOUND",
	}
	UpdatePeerErrorCode_value = map[string]int32{
		"PEER_NOT_FOUND": 0,
	}
)

Enum value maps for UpdatePeerErrorCode.

View Source
var (
	ChangeNicknameErrorCode_name = map[int32]string{
		0: "SAME_NICKNAME",
		1: "NICKNAME_ALREADY_EMPTY",
		2: "DOMAIN_NAME_EXISTS",
		3: "RATE_LIMIT_REACH",
		4: "NICKNAME_TOO_LONG",
		5: "DUPLICATE_NICKNAME",
		6: "CONTAINS_FORBIDDEN_WORD",
		7: "SUFFIX_OR_PREFIX_ARE_INVALID",
		8: "NICKNAME_HAS_DOUBLE_HYPHENS",
		9: "INVALID_CHARS",
	}
	ChangeNicknameErrorCode_value = map[string]int32{
		"SAME_NICKNAME":                0,
		"NICKNAME_ALREADY_EMPTY":       1,
		"DOMAIN_NAME_EXISTS":           2,
		"RATE_LIMIT_REACH":             3,
		"NICKNAME_TOO_LONG":            4,
		"DUPLICATE_NICKNAME":           5,
		"CONTAINS_FORBIDDEN_WORD":      6,
		"SUFFIX_OR_PREFIX_ARE_INVALID": 7,
		"NICKNAME_HAS_DOUBLE_HYPHENS":  8,
		"INVALID_CHARS":                9,
	}
)

Enum value maps for ChangeNicknameErrorCode.

View Source
var (
	AllowRoutingErrorCode_name = map[int32]string{
		0: "ROUTING_ALREADY_ALLOWED",
	}
	AllowRoutingErrorCode_value = map[string]int32{
		"ROUTING_ALREADY_ALLOWED": 0,
	}
)

Enum value maps for AllowRoutingErrorCode.

View Source
var (
	DenyRoutingErrorCode_name = map[int32]string{
		0: "ROUTING_ALREADY_DENIED",
	}
	DenyRoutingErrorCode_value = map[string]int32{
		"ROUTING_ALREADY_DENIED": 0,
	}
)

Enum value maps for DenyRoutingErrorCode.

View Source
var (
	AllowIncomingErrorCode_name = map[int32]string{
		0: "INCOMING_ALREADY_ALLOWED",
	}
	AllowIncomingErrorCode_value = map[string]int32{
		"INCOMING_ALREADY_ALLOWED": 0,
	}
)

Enum value maps for AllowIncomingErrorCode.

View Source
var (
	DenyIncomingErrorCode_name = map[int32]string{
		0: "INCOMING_ALREADY_DENIED",
	}
	DenyIncomingErrorCode_value = map[string]int32{
		"INCOMING_ALREADY_DENIED": 0,
	}
)

Enum value maps for DenyIncomingErrorCode.

View Source
var (
	AllowLocalNetworkErrorCode_name = map[int32]string{
		0: "LOCAL_NETWORK_ALREADY_ALLOWED",
	}
	AllowLocalNetworkErrorCode_value = map[string]int32{
		"LOCAL_NETWORK_ALREADY_ALLOWED": 0,
	}
)

Enum value maps for AllowLocalNetworkErrorCode.

View Source
var (
	DenyLocalNetworkErrorCode_name = map[int32]string{
		0: "LOCAL_NETWORK_ALREADY_DENIED",
	}
	DenyLocalNetworkErrorCode_value = map[string]int32{
		"LOCAL_NETWORK_ALREADY_DENIED": 0,
	}
)

Enum value maps for DenyLocalNetworkErrorCode.

View Source
var (
	AllowFileshareErrorCode_name = map[int32]string{
		0: "SEND_ALREADY_ALLOWED",
	}
	AllowFileshareErrorCode_value = map[string]int32{
		"SEND_ALREADY_ALLOWED": 0,
	}
)

Enum value maps for AllowFileshareErrorCode.

View Source
var (
	DenyFileshareErrorCode_name = map[int32]string{
		0: "SEND_ALREADY_DENIED",
	}
	DenyFileshareErrorCode_value = map[string]int32{
		"SEND_ALREADY_DENIED": 0,
	}
)

Enum value maps for DenyFileshareErrorCode.

View Source
var (
	EnableAutomaticFileshareErrorCode_name = map[int32]string{
		0: "AUTOMATIC_FILESHARE_ALREADY_ENABLED",
	}
	EnableAutomaticFileshareErrorCode_value = map[string]int32{
		"AUTOMATIC_FILESHARE_ALREADY_ENABLED": 0,
	}
)

Enum value maps for EnableAutomaticFileshareErrorCode.

View Source
var (
	DisableAutomaticFileshareErrorCode_name = map[int32]string{
		0: "AUTOMATIC_FILESHARE_ALREADY_DISABLED",
	}
	DisableAutomaticFileshareErrorCode_value = map[string]int32{
		"AUTOMATIC_FILESHARE_ALREADY_DISABLED": 0,
	}
)

Enum value maps for DisableAutomaticFileshareErrorCode.

View Source
var (
	ConnectErrorCode_name = map[int32]string{
		0: "PEER_DOES_NOT_ALLOW_ROUTING",
		1: "ALREADY_CONNECTED",
		2: "CONNECT_FAILED",
		3: "PEER_NO_IP",
	}
	ConnectErrorCode_value = map[string]int32{
		"PEER_DOES_NOT_ALLOW_ROUTING": 0,
		"ALREADY_CONNECTED":           1,
		"CONNECT_FAILED":              2,
		"PEER_NO_IP":                  3,
	}
)

Enum value maps for ConnectErrorCode.

View Source
var (
	ServiceErrorCode_name = map[int32]string{
		0: "NOT_LOGGED_IN",
		1: "API_FAILURE",
		2: "CONFIG_FAILURE",
	}
	ServiceErrorCode_value = map[string]int32{
		"NOT_LOGGED_IN":  0,
		"API_FAILURE":    1,
		"CONFIG_FAILURE": 2,
	}
)

Enum value maps for ServiceErrorCode.

View Source
var (
	MeshnetErrorCode_name = map[int32]string{
		0: "NOT_REGISTERED",
		1: "LIB_FAILURE",
		3: "ALREADY_ENABLED",
		4: "ALREADY_DISABLED",
		5: "NOT_ENABLED",
		6: "TECH_FAILURE",
		7: "TUNNEL_CLOSED",
	}
	MeshnetErrorCode_value = map[string]int32{
		"NOT_REGISTERED":   0,
		"LIB_FAILURE":      1,
		"ALREADY_ENABLED":  3,
		"ALREADY_DISABLED": 4,
		"NOT_ENABLED":      5,
		"TECH_FAILURE":     6,
		"TUNNEL_CLOSED":    7,
	}
)

Enum value maps for MeshnetErrorCode.

View Source
var File_empty_proto protoreflect.FileDescriptor
View Source
var File_fsnotify_proto protoreflect.FileDescriptor
View Source
var File_invite_proto protoreflect.FileDescriptor
View Source
var File_service_response_proto protoreflect.FileDescriptor
View Source
var Meshnet_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "meshpb.Meshnet",
	HandlerType: (*MeshnetServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EnableMeshnet",
			Handler:    _Meshnet_EnableMeshnet_Handler,
		},
		{
			MethodName: "IsEnabled",
			Handler:    _Meshnet_IsEnabled_Handler,
		},
		{
			MethodName: "DisableMeshnet",
			Handler:    _Meshnet_DisableMeshnet_Handler,
		},
		{
			MethodName: "RefreshMeshnet",
			Handler:    _Meshnet_RefreshMeshnet_Handler,
		},
		{
			MethodName: "GetInvites",
			Handler:    _Meshnet_GetInvites_Handler,
		},
		{
			MethodName: "Invite",
			Handler:    _Meshnet_Invite_Handler,
		},
		{
			MethodName: "RevokeInvite",
			Handler:    _Meshnet_RevokeInvite_Handler,
		},
		{
			MethodName: "AcceptInvite",
			Handler:    _Meshnet_AcceptInvite_Handler,
		},
		{
			MethodName: "DenyInvite",
			Handler:    _Meshnet_DenyInvite_Handler,
		},
		{
			MethodName: "GetPeers",
			Handler:    _Meshnet_GetPeers_Handler,
		},
		{
			MethodName: "RemovePeer",
			Handler:    _Meshnet_RemovePeer_Handler,
		},
		{
			MethodName: "ChangePeerNickname",
			Handler:    _Meshnet_ChangePeerNickname_Handler,
		},
		{
			MethodName: "ChangeMachineNickname",
			Handler:    _Meshnet_ChangeMachineNickname_Handler,
		},
		{
			MethodName: "AllowRouting",
			Handler:    _Meshnet_AllowRouting_Handler,
		},
		{
			MethodName: "DenyRouting",
			Handler:    _Meshnet_DenyRouting_Handler,
		},
		{
			MethodName: "AllowIncoming",
			Handler:    _Meshnet_AllowIncoming_Handler,
		},
		{
			MethodName: "DenyIncoming",
			Handler:    _Meshnet_DenyIncoming_Handler,
		},
		{
			MethodName: "AllowLocalNetwork",
			Handler:    _Meshnet_AllowLocalNetwork_Handler,
		},
		{
			MethodName: "DenyLocalNetwork",
			Handler:    _Meshnet_DenyLocalNetwork_Handler,
		},
		{
			MethodName: "AllowFileshare",
			Handler:    _Meshnet_AllowFileshare_Handler,
		},
		{
			MethodName: "DenyFileshare",
			Handler:    _Meshnet_DenyFileshare_Handler,
		},
		{
			MethodName: "EnableAutomaticFileshare",
			Handler:    _Meshnet_EnableAutomaticFileshare_Handler,
		},
		{
			MethodName: "DisableAutomaticFileshare",
			Handler:    _Meshnet_DisableAutomaticFileshare_Handler,
		},
		{
			MethodName: "Connect",
			Handler:    _Meshnet_Connect_Handler,
		},
		{
			MethodName: "NotifyNewTransfer",
			Handler:    _Meshnet_NotifyNewTransfer_Handler,
		},
		{
			MethodName: "GetPrivateKey",
			Handler:    _Meshnet_GetPrivateKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

Meshnet_ServiceDesc is the grpc.ServiceDesc for Meshnet service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMeshnetServer

func RegisterMeshnetServer(s grpc.ServiceRegistrar, srv MeshnetServer)

Types

type AllowFileshareErrorCode

type AllowFileshareErrorCode int32
const (
	AllowFileshareErrorCode_SEND_ALREADY_ALLOWED AllowFileshareErrorCode = 0
)

func (AllowFileshareErrorCode) Descriptor

func (AllowFileshareErrorCode) Enum

func (AllowFileshareErrorCode) EnumDescriptor deprecated

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

Deprecated: Use AllowFileshareErrorCode.Descriptor instead.

func (AllowFileshareErrorCode) Number

func (AllowFileshareErrorCode) String

func (x AllowFileshareErrorCode) String() string

func (AllowFileshareErrorCode) Type

type AllowFileshareResponse

type AllowFileshareResponse struct {

	// Types that are assignable to Response:
	//
	//	*AllowFileshareResponse_Empty
	//	*AllowFileshareResponse_UpdatePeerErrorCode
	//	*AllowFileshareResponse_AllowSendErrorCode
	//	*AllowFileshareResponse_ServiceErrorCode
	//	*AllowFileshareResponse_MeshnetErrorCode
	Response isAllowFileshareResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

AllowSendFileResponse defines a response for allow send file request

func (*AllowFileshareResponse) Descriptor deprecated

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

Deprecated: Use AllowFileshareResponse.ProtoReflect.Descriptor instead.

func (*AllowFileshareResponse) GetAllowSendErrorCode

func (x *AllowFileshareResponse) GetAllowSendErrorCode() AllowFileshareErrorCode

func (*AllowFileshareResponse) GetEmpty

func (x *AllowFileshareResponse) GetEmpty() *Empty

func (*AllowFileshareResponse) GetMeshnetErrorCode

func (x *AllowFileshareResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*AllowFileshareResponse) GetResponse

func (m *AllowFileshareResponse) GetResponse() isAllowFileshareResponse_Response

func (*AllowFileshareResponse) GetServiceErrorCode

func (x *AllowFileshareResponse) GetServiceErrorCode() ServiceErrorCode

func (*AllowFileshareResponse) GetUpdatePeerErrorCode

func (x *AllowFileshareResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*AllowFileshareResponse) ProtoMessage

func (*AllowFileshareResponse) ProtoMessage()

func (*AllowFileshareResponse) ProtoReflect

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

func (*AllowFileshareResponse) Reset

func (x *AllowFileshareResponse) Reset()

func (*AllowFileshareResponse) String

func (x *AllowFileshareResponse) String() string

type AllowFileshareResponse_AllowSendErrorCode

type AllowFileshareResponse_AllowSendErrorCode struct {
	AllowSendErrorCode AllowFileshareErrorCode `protobuf:"varint,3,opt,name=allow_send_error_code,json=allowSendErrorCode,proto3,enum=meshpb.AllowFileshareErrorCode,oneof"`
}

type AllowFileshareResponse_Empty

type AllowFileshareResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type AllowFileshareResponse_MeshnetErrorCode

type AllowFileshareResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type AllowFileshareResponse_ServiceErrorCode

type AllowFileshareResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type AllowFileshareResponse_UpdatePeerErrorCode

type AllowFileshareResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type AllowIncomingErrorCode

type AllowIncomingErrorCode int32

AllowIncomingErrorCode defines an error code which is specific to allow incoming traffic

const (
	AllowIncomingErrorCode_INCOMING_ALREADY_ALLOWED AllowIncomingErrorCode = 0
)

func (AllowIncomingErrorCode) Descriptor

func (AllowIncomingErrorCode) Enum

func (AllowIncomingErrorCode) EnumDescriptor deprecated

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

Deprecated: Use AllowIncomingErrorCode.Descriptor instead.

func (AllowIncomingErrorCode) Number

func (AllowIncomingErrorCode) String

func (x AllowIncomingErrorCode) String() string

func (AllowIncomingErrorCode) Type

type AllowIncomingResponse

type AllowIncomingResponse struct {

	// Types that are assignable to Response:
	//
	//	*AllowIncomingResponse_Empty
	//	*AllowIncomingResponse_UpdatePeerErrorCode
	//	*AllowIncomingResponse_AllowIncomingErrorCode
	//	*AllowIncomingResponse_ServiceErrorCode
	//	*AllowIncomingResponse_MeshnetErrorCode
	Response isAllowIncomingResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

AllowIncomingResponse defines a response for allow incoming traffic request

func (*AllowIncomingResponse) Descriptor deprecated

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

Deprecated: Use AllowIncomingResponse.ProtoReflect.Descriptor instead.

func (*AllowIncomingResponse) GetAllowIncomingErrorCode

func (x *AllowIncomingResponse) GetAllowIncomingErrorCode() AllowIncomingErrorCode

func (*AllowIncomingResponse) GetEmpty

func (x *AllowIncomingResponse) GetEmpty() *Empty

func (*AllowIncomingResponse) GetMeshnetErrorCode

func (x *AllowIncomingResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*AllowIncomingResponse) GetResponse

func (m *AllowIncomingResponse) GetResponse() isAllowIncomingResponse_Response

func (*AllowIncomingResponse) GetServiceErrorCode

func (x *AllowIncomingResponse) GetServiceErrorCode() ServiceErrorCode

func (*AllowIncomingResponse) GetUpdatePeerErrorCode

func (x *AllowIncomingResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*AllowIncomingResponse) ProtoMessage

func (*AllowIncomingResponse) ProtoMessage()

func (*AllowIncomingResponse) ProtoReflect

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

func (*AllowIncomingResponse) Reset

func (x *AllowIncomingResponse) Reset()

func (*AllowIncomingResponse) String

func (x *AllowIncomingResponse) String() string

type AllowIncomingResponse_AllowIncomingErrorCode

type AllowIncomingResponse_AllowIncomingErrorCode struct {
	AllowIncomingErrorCode AllowIncomingErrorCode `` /* 130-byte string literal not displayed */
}

type AllowIncomingResponse_Empty

type AllowIncomingResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type AllowIncomingResponse_MeshnetErrorCode

type AllowIncomingResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type AllowIncomingResponse_ServiceErrorCode

type AllowIncomingResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type AllowIncomingResponse_UpdatePeerErrorCode

type AllowIncomingResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type AllowLocalNetworkErrorCode

type AllowLocalNetworkErrorCode int32

AllowLocalNetworkErrorCode defines an error code which is specific to allow local network traffic

const (
	AllowLocalNetworkErrorCode_LOCAL_NETWORK_ALREADY_ALLOWED AllowLocalNetworkErrorCode = 0
)

func (AllowLocalNetworkErrorCode) Descriptor

func (AllowLocalNetworkErrorCode) Enum

func (AllowLocalNetworkErrorCode) EnumDescriptor deprecated

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

Deprecated: Use AllowLocalNetworkErrorCode.Descriptor instead.

func (AllowLocalNetworkErrorCode) Number

func (AllowLocalNetworkErrorCode) String

func (AllowLocalNetworkErrorCode) Type

type AllowLocalNetworkResponse

type AllowLocalNetworkResponse struct {

	// Types that are assignable to Response:
	//
	//	*AllowLocalNetworkResponse_Empty
	//	*AllowLocalNetworkResponse_UpdatePeerErrorCode
	//	*AllowLocalNetworkResponse_AllowLocalNetworkErrorCode
	//	*AllowLocalNetworkResponse_ServiceErrorCode
	//	*AllowLocalNetworkResponse_MeshnetErrorCode
	Response isAllowLocalNetworkResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

AllowLocalNetworkResponse defines a response for allow local network traffic request

func (*AllowLocalNetworkResponse) Descriptor deprecated

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

Deprecated: Use AllowLocalNetworkResponse.ProtoReflect.Descriptor instead.

func (*AllowLocalNetworkResponse) GetAllowLocalNetworkErrorCode

func (x *AllowLocalNetworkResponse) GetAllowLocalNetworkErrorCode() AllowLocalNetworkErrorCode

func (*AllowLocalNetworkResponse) GetEmpty

func (x *AllowLocalNetworkResponse) GetEmpty() *Empty

func (*AllowLocalNetworkResponse) GetMeshnetErrorCode

func (x *AllowLocalNetworkResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*AllowLocalNetworkResponse) GetResponse

func (m *AllowLocalNetworkResponse) GetResponse() isAllowLocalNetworkResponse_Response

func (*AllowLocalNetworkResponse) GetServiceErrorCode

func (x *AllowLocalNetworkResponse) GetServiceErrorCode() ServiceErrorCode

func (*AllowLocalNetworkResponse) GetUpdatePeerErrorCode

func (x *AllowLocalNetworkResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*AllowLocalNetworkResponse) ProtoMessage

func (*AllowLocalNetworkResponse) ProtoMessage()

func (*AllowLocalNetworkResponse) ProtoReflect

func (*AllowLocalNetworkResponse) Reset

func (x *AllowLocalNetworkResponse) Reset()

func (*AllowLocalNetworkResponse) String

func (x *AllowLocalNetworkResponse) String() string

type AllowLocalNetworkResponse_AllowLocalNetworkErrorCode

type AllowLocalNetworkResponse_AllowLocalNetworkErrorCode struct {
	AllowLocalNetworkErrorCode AllowLocalNetworkErrorCode `` /* 143-byte string literal not displayed */
}

type AllowLocalNetworkResponse_Empty

type AllowLocalNetworkResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type AllowLocalNetworkResponse_MeshnetErrorCode

type AllowLocalNetworkResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type AllowLocalNetworkResponse_ServiceErrorCode

type AllowLocalNetworkResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type AllowLocalNetworkResponse_UpdatePeerErrorCode

type AllowLocalNetworkResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type AllowRoutingErrorCode

type AllowRoutingErrorCode int32

AllowRoutingErrorCode defines an error code which is specific to allow routing

const (
	AllowRoutingErrorCode_ROUTING_ALREADY_ALLOWED AllowRoutingErrorCode = 0
)

func (AllowRoutingErrorCode) Descriptor

func (AllowRoutingErrorCode) Enum

func (AllowRoutingErrorCode) EnumDescriptor deprecated

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

Deprecated: Use AllowRoutingErrorCode.Descriptor instead.

func (AllowRoutingErrorCode) Number

func (AllowRoutingErrorCode) String

func (x AllowRoutingErrorCode) String() string

func (AllowRoutingErrorCode) Type

type AllowRoutingResponse

type AllowRoutingResponse struct {

	// Types that are assignable to Response:
	//
	//	*AllowRoutingResponse_Empty
	//	*AllowRoutingResponse_UpdatePeerErrorCode
	//	*AllowRoutingResponse_AllowRoutingErrorCode
	//	*AllowRoutingResponse_ServiceErrorCode
	//	*AllowRoutingResponse_MeshnetErrorCode
	Response isAllowRoutingResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

AllowRoutingResponse defines a response for allow routing request

func (*AllowRoutingResponse) Descriptor deprecated

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

Deprecated: Use AllowRoutingResponse.ProtoReflect.Descriptor instead.

func (*AllowRoutingResponse) GetAllowRoutingErrorCode

func (x *AllowRoutingResponse) GetAllowRoutingErrorCode() AllowRoutingErrorCode

func (*AllowRoutingResponse) GetEmpty

func (x *AllowRoutingResponse) GetEmpty() *Empty

func (*AllowRoutingResponse) GetMeshnetErrorCode

func (x *AllowRoutingResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*AllowRoutingResponse) GetResponse

func (m *AllowRoutingResponse) GetResponse() isAllowRoutingResponse_Response

func (*AllowRoutingResponse) GetServiceErrorCode

func (x *AllowRoutingResponse) GetServiceErrorCode() ServiceErrorCode

func (*AllowRoutingResponse) GetUpdatePeerErrorCode

func (x *AllowRoutingResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*AllowRoutingResponse) ProtoMessage

func (*AllowRoutingResponse) ProtoMessage()

func (*AllowRoutingResponse) ProtoReflect

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

func (*AllowRoutingResponse) Reset

func (x *AllowRoutingResponse) Reset()

func (*AllowRoutingResponse) String

func (x *AllowRoutingResponse) String() string

type AllowRoutingResponse_AllowRoutingErrorCode

type AllowRoutingResponse_AllowRoutingErrorCode struct {
	AllowRoutingErrorCode AllowRoutingErrorCode `` /* 127-byte string literal not displayed */
}

type AllowRoutingResponse_Empty

type AllowRoutingResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type AllowRoutingResponse_MeshnetErrorCode

type AllowRoutingResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type AllowRoutingResponse_ServiceErrorCode

type AllowRoutingResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type AllowRoutingResponse_UpdatePeerErrorCode

type AllowRoutingResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type ChangeMachineNicknameRequest

type ChangeMachineNicknameRequest struct {
	Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// contains filtered or unexported fields
}

ChangeMachineNicknameRequest defines a request to change the nickname for the current machine from meshnet

func (*ChangeMachineNicknameRequest) Descriptor deprecated

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

Deprecated: Use ChangeMachineNicknameRequest.ProtoReflect.Descriptor instead.

func (*ChangeMachineNicknameRequest) GetNickname

func (x *ChangeMachineNicknameRequest) GetNickname() string

func (*ChangeMachineNicknameRequest) ProtoMessage

func (*ChangeMachineNicknameRequest) ProtoMessage()

func (*ChangeMachineNicknameRequest) ProtoReflect

func (*ChangeMachineNicknameRequest) Reset

func (x *ChangeMachineNicknameRequest) Reset()

func (*ChangeMachineNicknameRequest) String

type ChangeNicknameErrorCode

type ChangeNicknameErrorCode int32

ChangeNicknameErrorCode defines the errors that occur at meshnet nickname changes

const (
	ChangeNicknameErrorCode_SAME_NICKNAME                ChangeNicknameErrorCode = 0
	ChangeNicknameErrorCode_NICKNAME_ALREADY_EMPTY       ChangeNicknameErrorCode = 1
	ChangeNicknameErrorCode_DOMAIN_NAME_EXISTS           ChangeNicknameErrorCode = 2
	ChangeNicknameErrorCode_RATE_LIMIT_REACH             ChangeNicknameErrorCode = 3
	ChangeNicknameErrorCode_NICKNAME_TOO_LONG            ChangeNicknameErrorCode = 4
	ChangeNicknameErrorCode_DUPLICATE_NICKNAME           ChangeNicknameErrorCode = 5
	ChangeNicknameErrorCode_CONTAINS_FORBIDDEN_WORD      ChangeNicknameErrorCode = 6
	ChangeNicknameErrorCode_SUFFIX_OR_PREFIX_ARE_INVALID ChangeNicknameErrorCode = 7
	ChangeNicknameErrorCode_NICKNAME_HAS_DOUBLE_HYPHENS  ChangeNicknameErrorCode = 8
	ChangeNicknameErrorCode_INVALID_CHARS                ChangeNicknameErrorCode = 9
)

func (ChangeNicknameErrorCode) Descriptor

func (ChangeNicknameErrorCode) Enum

func (ChangeNicknameErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ChangeNicknameErrorCode.Descriptor instead.

func (ChangeNicknameErrorCode) Number

func (ChangeNicknameErrorCode) String

func (x ChangeNicknameErrorCode) String() string

func (ChangeNicknameErrorCode) Type

type ChangeNicknameResponse

type ChangeNicknameResponse struct {

	// Types that are assignable to Response:
	//
	//	*ChangeNicknameResponse_Empty
	//	*ChangeNicknameResponse_UpdatePeerErrorCode
	//	*ChangeNicknameResponse_ServiceErrorCode
	//	*ChangeNicknameResponse_MeshnetErrorCode
	//	*ChangeNicknameResponse_ChangeNicknameErrorCode
	Response isChangeNicknameResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

ChangeNicknameResponse defines a response to change(set/remove) the nickname for a peer or for current machine

func (*ChangeNicknameResponse) Descriptor deprecated

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

Deprecated: Use ChangeNicknameResponse.ProtoReflect.Descriptor instead.

func (*ChangeNicknameResponse) GetChangeNicknameErrorCode

func (x *ChangeNicknameResponse) GetChangeNicknameErrorCode() ChangeNicknameErrorCode

func (*ChangeNicknameResponse) GetEmpty

func (x *ChangeNicknameResponse) GetEmpty() *Empty

func (*ChangeNicknameResponse) GetMeshnetErrorCode

func (x *ChangeNicknameResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*ChangeNicknameResponse) GetResponse

func (m *ChangeNicknameResponse) GetResponse() isChangeNicknameResponse_Response

func (*ChangeNicknameResponse) GetServiceErrorCode

func (x *ChangeNicknameResponse) GetServiceErrorCode() ServiceErrorCode

func (*ChangeNicknameResponse) GetUpdatePeerErrorCode

func (x *ChangeNicknameResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*ChangeNicknameResponse) ProtoMessage

func (*ChangeNicknameResponse) ProtoMessage()

func (*ChangeNicknameResponse) ProtoReflect

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

func (*ChangeNicknameResponse) Reset

func (x *ChangeNicknameResponse) Reset()

func (*ChangeNicknameResponse) String

func (x *ChangeNicknameResponse) String() string

type ChangeNicknameResponse_ChangeNicknameErrorCode

type ChangeNicknameResponse_ChangeNicknameErrorCode struct {
	ChangeNicknameErrorCode ChangeNicknameErrorCode `` /* 133-byte string literal not displayed */
}

type ChangeNicknameResponse_Empty

type ChangeNicknameResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type ChangeNicknameResponse_MeshnetErrorCode

type ChangeNicknameResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,4,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type ChangeNicknameResponse_ServiceErrorCode

type ChangeNicknameResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,3,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type ChangeNicknameResponse_UpdatePeerErrorCode

type ChangeNicknameResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type ChangePeerNicknameRequest

type ChangePeerNicknameRequest struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Nickname   string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// contains filtered or unexported fields
}

ChangePeerNicknameRequest defines a request to change the nickname for a meshnet peer

func (*ChangePeerNicknameRequest) Descriptor deprecated

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

Deprecated: Use ChangePeerNicknameRequest.ProtoReflect.Descriptor instead.

func (*ChangePeerNicknameRequest) GetIdentifier

func (x *ChangePeerNicknameRequest) GetIdentifier() string

func (*ChangePeerNicknameRequest) GetNickname

func (x *ChangePeerNicknameRequest) GetNickname() string

func (*ChangePeerNicknameRequest) ProtoMessage

func (*ChangePeerNicknameRequest) ProtoMessage()

func (*ChangePeerNicknameRequest) ProtoReflect

func (*ChangePeerNicknameRequest) Reset

func (x *ChangePeerNicknameRequest) Reset()

func (*ChangePeerNicknameRequest) String

func (x *ChangePeerNicknameRequest) String() string

type ConnectErrorCode

type ConnectErrorCode int32
const (
	ConnectErrorCode_PEER_DOES_NOT_ALLOW_ROUTING ConnectErrorCode = 0
	ConnectErrorCode_ALREADY_CONNECTED           ConnectErrorCode = 1
	ConnectErrorCode_CONNECT_FAILED              ConnectErrorCode = 2
	ConnectErrorCode_PEER_NO_IP                  ConnectErrorCode = 3
)

func (ConnectErrorCode) Descriptor

func (ConnectErrorCode) Enum

func (ConnectErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ConnectErrorCode.Descriptor instead.

func (ConnectErrorCode) Number

func (ConnectErrorCode) String

func (x ConnectErrorCode) String() string

func (ConnectErrorCode) Type

type ConnectResponse

type ConnectResponse struct {

	// Types that are assignable to Response:
	//
	//	*ConnectResponse_Empty
	//	*ConnectResponse_UpdatePeerErrorCode
	//	*ConnectResponse_ConnectErrorCode
	//	*ConnectResponse_ServiceErrorCode
	//	*ConnectResponse_MeshnetErrorCode
	Response isConnectResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*ConnectResponse) Descriptor deprecated

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

Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.

func (*ConnectResponse) GetConnectErrorCode

func (x *ConnectResponse) GetConnectErrorCode() ConnectErrorCode

func (*ConnectResponse) GetEmpty

func (x *ConnectResponse) GetEmpty() *Empty

func (*ConnectResponse) GetMeshnetErrorCode

func (x *ConnectResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*ConnectResponse) GetResponse

func (m *ConnectResponse) GetResponse() isConnectResponse_Response

func (*ConnectResponse) GetServiceErrorCode

func (x *ConnectResponse) GetServiceErrorCode() ServiceErrorCode

func (*ConnectResponse) GetUpdatePeerErrorCode

func (x *ConnectResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*ConnectResponse) ProtoMessage

func (*ConnectResponse) ProtoMessage()

func (*ConnectResponse) ProtoReflect

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

func (*ConnectResponse) Reset

func (x *ConnectResponse) Reset()

func (*ConnectResponse) String

func (x *ConnectResponse) String() string

type ConnectResponse_ConnectErrorCode

type ConnectResponse_ConnectErrorCode struct {
	ConnectErrorCode ConnectErrorCode `protobuf:"varint,3,opt,name=connect_error_code,json=connectErrorCode,proto3,enum=meshpb.ConnectErrorCode,oneof"`
}

type ConnectResponse_Empty

type ConnectResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type ConnectResponse_MeshnetErrorCode

type ConnectResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type ConnectResponse_ServiceErrorCode

type ConnectResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type ConnectResponse_UpdatePeerErrorCode

type ConnectResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type DenyFileshareErrorCode

type DenyFileshareErrorCode int32
const (
	DenyFileshareErrorCode_SEND_ALREADY_DENIED DenyFileshareErrorCode = 0
)

func (DenyFileshareErrorCode) Descriptor

func (DenyFileshareErrorCode) Enum

func (DenyFileshareErrorCode) EnumDescriptor deprecated

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

Deprecated: Use DenyFileshareErrorCode.Descriptor instead.

func (DenyFileshareErrorCode) Number

func (DenyFileshareErrorCode) String

func (x DenyFileshareErrorCode) String() string

func (DenyFileshareErrorCode) Type

type DenyFileshareResponse

type DenyFileshareResponse struct {

	// Types that are assignable to Response:
	//
	//	*DenyFileshareResponse_Empty
	//	*DenyFileshareResponse_UpdatePeerErrorCode
	//	*DenyFileshareResponse_DenySendErrorCode
	//	*DenyFileshareResponse_ServiceErrorCode
	//	*DenyFileshareResponse_MeshnetErrorCode
	Response isDenyFileshareResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

DenySendFileResponse defines a response for deny send file request

func (*DenyFileshareResponse) Descriptor deprecated

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

Deprecated: Use DenyFileshareResponse.ProtoReflect.Descriptor instead.

func (*DenyFileshareResponse) GetDenySendErrorCode

func (x *DenyFileshareResponse) GetDenySendErrorCode() DenyFileshareErrorCode

func (*DenyFileshareResponse) GetEmpty

func (x *DenyFileshareResponse) GetEmpty() *Empty

func (*DenyFileshareResponse) GetMeshnetErrorCode

func (x *DenyFileshareResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*DenyFileshareResponse) GetResponse

func (m *DenyFileshareResponse) GetResponse() isDenyFileshareResponse_Response

func (*DenyFileshareResponse) GetServiceErrorCode

func (x *DenyFileshareResponse) GetServiceErrorCode() ServiceErrorCode

func (*DenyFileshareResponse) GetUpdatePeerErrorCode

func (x *DenyFileshareResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*DenyFileshareResponse) ProtoMessage

func (*DenyFileshareResponse) ProtoMessage()

func (*DenyFileshareResponse) ProtoReflect

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

func (*DenyFileshareResponse) Reset

func (x *DenyFileshareResponse) Reset()

func (*DenyFileshareResponse) String

func (x *DenyFileshareResponse) String() string

type DenyFileshareResponse_DenySendErrorCode

type DenyFileshareResponse_DenySendErrorCode struct {
	DenySendErrorCode DenyFileshareErrorCode `protobuf:"varint,3,opt,name=deny_send_error_code,json=denySendErrorCode,proto3,enum=meshpb.DenyFileshareErrorCode,oneof"`
}

type DenyFileshareResponse_Empty

type DenyFileshareResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type DenyFileshareResponse_MeshnetErrorCode

type DenyFileshareResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type DenyFileshareResponse_ServiceErrorCode

type DenyFileshareResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type DenyFileshareResponse_UpdatePeerErrorCode

type DenyFileshareResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type DenyIncomingErrorCode

type DenyIncomingErrorCode int32

DenyIncomingErrorCode defines an error code which is specific to deny incoming traffic

const (
	DenyIncomingErrorCode_INCOMING_ALREADY_DENIED DenyIncomingErrorCode = 0
)

func (DenyIncomingErrorCode) Descriptor

func (DenyIncomingErrorCode) Enum

func (DenyIncomingErrorCode) EnumDescriptor deprecated

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

Deprecated: Use DenyIncomingErrorCode.Descriptor instead.

func (DenyIncomingErrorCode) Number

func (DenyIncomingErrorCode) String

func (x DenyIncomingErrorCode) String() string

func (DenyIncomingErrorCode) Type

type DenyIncomingResponse

type DenyIncomingResponse struct {

	// Types that are assignable to Response:
	//
	//	*DenyIncomingResponse_Empty
	//	*DenyIncomingResponse_UpdatePeerErrorCode
	//	*DenyIncomingResponse_DenyIncomingErrorCode
	//	*DenyIncomingResponse_ServiceErrorCode
	//	*DenyIncomingResponse_MeshnetErrorCode
	Response isDenyIncomingResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

DenyIncomingResponse defines a response for deny incoming traffic request

func (*DenyIncomingResponse) Descriptor deprecated

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

Deprecated: Use DenyIncomingResponse.ProtoReflect.Descriptor instead.

func (*DenyIncomingResponse) GetDenyIncomingErrorCode

func (x *DenyIncomingResponse) GetDenyIncomingErrorCode() DenyIncomingErrorCode

func (*DenyIncomingResponse) GetEmpty

func (x *DenyIncomingResponse) GetEmpty() *Empty

func (*DenyIncomingResponse) GetMeshnetErrorCode

func (x *DenyIncomingResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*DenyIncomingResponse) GetResponse

func (m *DenyIncomingResponse) GetResponse() isDenyIncomingResponse_Response

func (*DenyIncomingResponse) GetServiceErrorCode

func (x *DenyIncomingResponse) GetServiceErrorCode() ServiceErrorCode

func (*DenyIncomingResponse) GetUpdatePeerErrorCode

func (x *DenyIncomingResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*DenyIncomingResponse) ProtoMessage

func (*DenyIncomingResponse) ProtoMessage()

func (*DenyIncomingResponse) ProtoReflect

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

func (*DenyIncomingResponse) Reset

func (x *DenyIncomingResponse) Reset()

func (*DenyIncomingResponse) String

func (x *DenyIncomingResponse) String() string

type DenyIncomingResponse_DenyIncomingErrorCode

type DenyIncomingResponse_DenyIncomingErrorCode struct {
	DenyIncomingErrorCode DenyIncomingErrorCode `` /* 127-byte string literal not displayed */
}

type DenyIncomingResponse_Empty

type DenyIncomingResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type DenyIncomingResponse_MeshnetErrorCode

type DenyIncomingResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type DenyIncomingResponse_ServiceErrorCode

type DenyIncomingResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type DenyIncomingResponse_UpdatePeerErrorCode

type DenyIncomingResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type DenyInviteRequest

type DenyInviteRequest struct {

	// email is the email of the invitation sender
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

DenyInviteRequest defines a denying response request for a meshnet invitation

func (*DenyInviteRequest) Descriptor deprecated

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

Deprecated: Use DenyInviteRequest.ProtoReflect.Descriptor instead.

func (*DenyInviteRequest) GetEmail

func (x *DenyInviteRequest) GetEmail() string

func (*DenyInviteRequest) ProtoMessage

func (*DenyInviteRequest) ProtoMessage()

func (*DenyInviteRequest) ProtoReflect

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

func (*DenyInviteRequest) Reset

func (x *DenyInviteRequest) Reset()

func (*DenyInviteRequest) String

func (x *DenyInviteRequest) String() string

type DenyLocalNetworkErrorCode

type DenyLocalNetworkErrorCode int32

DenyLocalNetworkErrorCode defines an error code which is specific to deny local network traffic

const (
	DenyLocalNetworkErrorCode_LOCAL_NETWORK_ALREADY_DENIED DenyLocalNetworkErrorCode = 0
)

func (DenyLocalNetworkErrorCode) Descriptor

func (DenyLocalNetworkErrorCode) Enum

func (DenyLocalNetworkErrorCode) EnumDescriptor deprecated

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

Deprecated: Use DenyLocalNetworkErrorCode.Descriptor instead.

func (DenyLocalNetworkErrorCode) Number

func (DenyLocalNetworkErrorCode) String

func (x DenyLocalNetworkErrorCode) String() string

func (DenyLocalNetworkErrorCode) Type

type DenyLocalNetworkResponse

type DenyLocalNetworkResponse struct {

	// Types that are assignable to Response:
	//
	//	*DenyLocalNetworkResponse_Empty
	//	*DenyLocalNetworkResponse_UpdatePeerErrorCode
	//	*DenyLocalNetworkResponse_DenyLocalNetworkErrorCode
	//	*DenyLocalNetworkResponse_ServiceErrorCode
	//	*DenyLocalNetworkResponse_MeshnetErrorCode
	Response isDenyLocalNetworkResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

DenyIncomingResponse defines a response for deny local network traffic request

func (*DenyLocalNetworkResponse) Descriptor deprecated

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

Deprecated: Use DenyLocalNetworkResponse.ProtoReflect.Descriptor instead.

func (*DenyLocalNetworkResponse) GetDenyLocalNetworkErrorCode

func (x *DenyLocalNetworkResponse) GetDenyLocalNetworkErrorCode() DenyLocalNetworkErrorCode

func (*DenyLocalNetworkResponse) GetEmpty

func (x *DenyLocalNetworkResponse) GetEmpty() *Empty

func (*DenyLocalNetworkResponse) GetMeshnetErrorCode

func (x *DenyLocalNetworkResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*DenyLocalNetworkResponse) GetResponse

func (m *DenyLocalNetworkResponse) GetResponse() isDenyLocalNetworkResponse_Response

func (*DenyLocalNetworkResponse) GetServiceErrorCode

func (x *DenyLocalNetworkResponse) GetServiceErrorCode() ServiceErrorCode

func (*DenyLocalNetworkResponse) GetUpdatePeerErrorCode

func (x *DenyLocalNetworkResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*DenyLocalNetworkResponse) ProtoMessage

func (*DenyLocalNetworkResponse) ProtoMessage()

func (*DenyLocalNetworkResponse) ProtoReflect

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

func (*DenyLocalNetworkResponse) Reset

func (x *DenyLocalNetworkResponse) Reset()

func (*DenyLocalNetworkResponse) String

func (x *DenyLocalNetworkResponse) String() string

type DenyLocalNetworkResponse_DenyLocalNetworkErrorCode

type DenyLocalNetworkResponse_DenyLocalNetworkErrorCode struct {
	DenyLocalNetworkErrorCode DenyLocalNetworkErrorCode `` /* 140-byte string literal not displayed */
}

type DenyLocalNetworkResponse_Empty

type DenyLocalNetworkResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type DenyLocalNetworkResponse_MeshnetErrorCode

type DenyLocalNetworkResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type DenyLocalNetworkResponse_ServiceErrorCode

type DenyLocalNetworkResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type DenyLocalNetworkResponse_UpdatePeerErrorCode

type DenyLocalNetworkResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type DenyRoutingErrorCode

type DenyRoutingErrorCode int32

DenyRoutingErrorCode defines an error code which is specific to deny routing

const (
	DenyRoutingErrorCode_ROUTING_ALREADY_DENIED DenyRoutingErrorCode = 0
)

func (DenyRoutingErrorCode) Descriptor

func (DenyRoutingErrorCode) Enum

func (DenyRoutingErrorCode) EnumDescriptor deprecated

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

Deprecated: Use DenyRoutingErrorCode.Descriptor instead.

func (DenyRoutingErrorCode) Number

func (DenyRoutingErrorCode) String

func (x DenyRoutingErrorCode) String() string

func (DenyRoutingErrorCode) Type

type DenyRoutingResponse

type DenyRoutingResponse struct {

	// Types that are assignable to Response:
	//
	//	*DenyRoutingResponse_Empty
	//	*DenyRoutingResponse_UpdatePeerErrorCode
	//	*DenyRoutingResponse_DenyRoutingErrorCode
	//	*DenyRoutingResponse_ServiceErrorCode
	//	*DenyRoutingResponse_MeshnetErrorCode
	Response isDenyRoutingResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

DenyRoutingResponse defines a response for allow routing request

func (*DenyRoutingResponse) Descriptor deprecated

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

Deprecated: Use DenyRoutingResponse.ProtoReflect.Descriptor instead.

func (*DenyRoutingResponse) GetDenyRoutingErrorCode

func (x *DenyRoutingResponse) GetDenyRoutingErrorCode() DenyRoutingErrorCode

func (*DenyRoutingResponse) GetEmpty

func (x *DenyRoutingResponse) GetEmpty() *Empty

func (*DenyRoutingResponse) GetMeshnetErrorCode

func (x *DenyRoutingResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*DenyRoutingResponse) GetResponse

func (m *DenyRoutingResponse) GetResponse() isDenyRoutingResponse_Response

func (*DenyRoutingResponse) GetServiceErrorCode

func (x *DenyRoutingResponse) GetServiceErrorCode() ServiceErrorCode

func (*DenyRoutingResponse) GetUpdatePeerErrorCode

func (x *DenyRoutingResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*DenyRoutingResponse) ProtoMessage

func (*DenyRoutingResponse) ProtoMessage()

func (*DenyRoutingResponse) ProtoReflect

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

func (*DenyRoutingResponse) Reset

func (x *DenyRoutingResponse) Reset()

func (*DenyRoutingResponse) String

func (x *DenyRoutingResponse) String() string

type DenyRoutingResponse_DenyRoutingErrorCode

type DenyRoutingResponse_DenyRoutingErrorCode struct {
	DenyRoutingErrorCode DenyRoutingErrorCode `protobuf:"varint,3,opt,name=deny_routing_error_code,json=denyRoutingErrorCode,proto3,enum=meshpb.DenyRoutingErrorCode,oneof"`
}

type DenyRoutingResponse_Empty

type DenyRoutingResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type DenyRoutingResponse_MeshnetErrorCode

type DenyRoutingResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type DenyRoutingResponse_ServiceErrorCode

type DenyRoutingResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type DenyRoutingResponse_UpdatePeerErrorCode

type DenyRoutingResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type DisableAutomaticFileshareErrorCode

type DisableAutomaticFileshareErrorCode int32
const (
	DisableAutomaticFileshareErrorCode_AUTOMATIC_FILESHARE_ALREADY_DISABLED DisableAutomaticFileshareErrorCode = 0
)

func (DisableAutomaticFileshareErrorCode) Descriptor

func (DisableAutomaticFileshareErrorCode) Enum

func (DisableAutomaticFileshareErrorCode) EnumDescriptor deprecated

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

Deprecated: Use DisableAutomaticFileshareErrorCode.Descriptor instead.

func (DisableAutomaticFileshareErrorCode) Number

func (DisableAutomaticFileshareErrorCode) String

func (DisableAutomaticFileshareErrorCode) Type

type DisableAutomaticFileshareResponse

type DisableAutomaticFileshareResponse struct {

	// Types that are assignable to Response:
	//
	//	*DisableAutomaticFileshareResponse_Empty
	//	*DisableAutomaticFileshareResponse_UpdatePeerErrorCode
	//	*DisableAutomaticFileshareResponse_DisableAutomaticFileshareErrorCode
	//	*DisableAutomaticFileshareResponse_ServiceErrorCode
	//	*DisableAutomaticFileshareResponse_MeshnetErrorCode
	Response isDisableAutomaticFileshareResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

DenySendFileResponse defines a response for deny send file request

func (*DisableAutomaticFileshareResponse) Descriptor deprecated

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

Deprecated: Use DisableAutomaticFileshareResponse.ProtoReflect.Descriptor instead.

func (*DisableAutomaticFileshareResponse) GetDisableAutomaticFileshareErrorCode

func (x *DisableAutomaticFileshareResponse) GetDisableAutomaticFileshareErrorCode() DisableAutomaticFileshareErrorCode

func (*DisableAutomaticFileshareResponse) GetEmpty

func (*DisableAutomaticFileshareResponse) GetMeshnetErrorCode

func (x *DisableAutomaticFileshareResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*DisableAutomaticFileshareResponse) GetResponse

func (m *DisableAutomaticFileshareResponse) GetResponse() isDisableAutomaticFileshareResponse_Response

func (*DisableAutomaticFileshareResponse) GetServiceErrorCode

func (x *DisableAutomaticFileshareResponse) GetServiceErrorCode() ServiceErrorCode

func (*DisableAutomaticFileshareResponse) GetUpdatePeerErrorCode

func (x *DisableAutomaticFileshareResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*DisableAutomaticFileshareResponse) ProtoMessage

func (*DisableAutomaticFileshareResponse) ProtoMessage()

func (*DisableAutomaticFileshareResponse) ProtoReflect

func (*DisableAutomaticFileshareResponse) Reset

func (*DisableAutomaticFileshareResponse) String

type DisableAutomaticFileshareResponse_DisableAutomaticFileshareErrorCode

type DisableAutomaticFileshareResponse_DisableAutomaticFileshareErrorCode struct {
	DisableAutomaticFileshareErrorCode DisableAutomaticFileshareErrorCode `` /* 167-byte string literal not displayed */
}

type DisableAutomaticFileshareResponse_Empty

type DisableAutomaticFileshareResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type DisableAutomaticFileshareResponse_MeshnetErrorCode

type DisableAutomaticFileshareResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type DisableAutomaticFileshareResponse_ServiceErrorCode

type DisableAutomaticFileshareResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type DisableAutomaticFileshareResponse_UpdatePeerErrorCode

type DisableAutomaticFileshareResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type Empty

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

Empty is just an empty structure

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type EnableAutomaticFileshareErrorCode

type EnableAutomaticFileshareErrorCode int32
const (
	EnableAutomaticFileshareErrorCode_AUTOMATIC_FILESHARE_ALREADY_ENABLED EnableAutomaticFileshareErrorCode = 0
)

func (EnableAutomaticFileshareErrorCode) Descriptor

func (EnableAutomaticFileshareErrorCode) Enum

func (EnableAutomaticFileshareErrorCode) EnumDescriptor deprecated

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

Deprecated: Use EnableAutomaticFileshareErrorCode.Descriptor instead.

func (EnableAutomaticFileshareErrorCode) Number

func (EnableAutomaticFileshareErrorCode) String

func (EnableAutomaticFileshareErrorCode) Type

type EnableAutomaticFileshareResponse

type EnableAutomaticFileshareResponse struct {

	// Types that are assignable to Response:
	//
	//	*EnableAutomaticFileshareResponse_Empty
	//	*EnableAutomaticFileshareResponse_UpdatePeerErrorCode
	//	*EnableAutomaticFileshareResponse_EnableAutomaticFileshareErrorCode
	//	*EnableAutomaticFileshareResponse_ServiceErrorCode
	//	*EnableAutomaticFileshareResponse_MeshnetErrorCode
	Response isEnableAutomaticFileshareResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

AllowSendFileResponse defines a response for allow send file request

func (*EnableAutomaticFileshareResponse) Descriptor deprecated

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

Deprecated: Use EnableAutomaticFileshareResponse.ProtoReflect.Descriptor instead.

func (*EnableAutomaticFileshareResponse) GetEmpty

func (x *EnableAutomaticFileshareResponse) GetEmpty() *Empty

func (*EnableAutomaticFileshareResponse) GetEnableAutomaticFileshareErrorCode

func (x *EnableAutomaticFileshareResponse) GetEnableAutomaticFileshareErrorCode() EnableAutomaticFileshareErrorCode

func (*EnableAutomaticFileshareResponse) GetMeshnetErrorCode

func (x *EnableAutomaticFileshareResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*EnableAutomaticFileshareResponse) GetResponse

func (m *EnableAutomaticFileshareResponse) GetResponse() isEnableAutomaticFileshareResponse_Response

func (*EnableAutomaticFileshareResponse) GetServiceErrorCode

func (x *EnableAutomaticFileshareResponse) GetServiceErrorCode() ServiceErrorCode

func (*EnableAutomaticFileshareResponse) GetUpdatePeerErrorCode

func (x *EnableAutomaticFileshareResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*EnableAutomaticFileshareResponse) ProtoMessage

func (*EnableAutomaticFileshareResponse) ProtoMessage()

func (*EnableAutomaticFileshareResponse) ProtoReflect

func (*EnableAutomaticFileshareResponse) Reset

func (*EnableAutomaticFileshareResponse) String

type EnableAutomaticFileshareResponse_Empty

type EnableAutomaticFileshareResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type EnableAutomaticFileshareResponse_EnableAutomaticFileshareErrorCode

type EnableAutomaticFileshareResponse_EnableAutomaticFileshareErrorCode struct {
	EnableAutomaticFileshareErrorCode EnableAutomaticFileshareErrorCode `` /* 164-byte string literal not displayed */
}

type EnableAutomaticFileshareResponse_MeshnetErrorCode

type EnableAutomaticFileshareResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,5,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type EnableAutomaticFileshareResponse_ServiceErrorCode

type EnableAutomaticFileshareResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,4,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type EnableAutomaticFileshareResponse_UpdatePeerErrorCode

type EnableAutomaticFileshareResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type EnabledStatus

type EnabledStatus struct {
	Value bool   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	Uid   uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

func (*EnabledStatus) Descriptor deprecated

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

Deprecated: Use EnabledStatus.ProtoReflect.Descriptor instead.

func (*EnabledStatus) GetUid

func (x *EnabledStatus) GetUid() uint32

func (*EnabledStatus) GetValue

func (x *EnabledStatus) GetValue() bool

func (*EnabledStatus) ProtoMessage

func (*EnabledStatus) ProtoMessage()

func (*EnabledStatus) ProtoReflect

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

func (*EnabledStatus) Reset

func (x *EnabledStatus) Reset()

func (*EnabledStatus) String

func (x *EnabledStatus) String() string

type GetInvitesResponse

type GetInvitesResponse struct {

	// Types that are assignable to Response:
	//
	//	*GetInvitesResponse_Invites
	//	*GetInvitesResponse_ServiceErrorCode
	//	*GetInvitesResponse_MeshnetErrorCode
	Response isGetInvitesResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

GetInvitesResponse defines a response for GetInvites request

func (*GetInvitesResponse) Descriptor deprecated

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

Deprecated: Use GetInvitesResponse.ProtoReflect.Descriptor instead.

func (*GetInvitesResponse) GetInvites

func (x *GetInvitesResponse) GetInvites() *InvitesList

func (*GetInvitesResponse) GetMeshnetErrorCode

func (x *GetInvitesResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*GetInvitesResponse) GetResponse

func (m *GetInvitesResponse) GetResponse() isGetInvitesResponse_Response

func (*GetInvitesResponse) GetServiceErrorCode

func (x *GetInvitesResponse) GetServiceErrorCode() ServiceErrorCode

func (*GetInvitesResponse) ProtoMessage

func (*GetInvitesResponse) ProtoMessage()

func (*GetInvitesResponse) ProtoReflect

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

func (*GetInvitesResponse) Reset

func (x *GetInvitesResponse) Reset()

func (*GetInvitesResponse) String

func (x *GetInvitesResponse) String() string

type GetInvitesResponse_Invites

type GetInvitesResponse_Invites struct {
	Invites *InvitesList `protobuf:"bytes,1,opt,name=invites,proto3,oneof"`
}

type GetInvitesResponse_MeshnetErrorCode

type GetInvitesResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,3,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type GetInvitesResponse_ServiceErrorCode

type GetInvitesResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,2,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type GetPeersResponse

type GetPeersResponse struct {

	// Types that are assignable to Response:
	//
	//	*GetPeersResponse_Peers
	//	*GetPeersResponse_ServiceErrorCode
	//	*GetPeersResponse_MeshnetErrorCode
	Response isGetPeersResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

GetPeersResponse defines

func (*GetPeersResponse) Descriptor deprecated

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

Deprecated: Use GetPeersResponse.ProtoReflect.Descriptor instead.

func (*GetPeersResponse) GetMeshnetErrorCode

func (x *GetPeersResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*GetPeersResponse) GetPeers

func (x *GetPeersResponse) GetPeers() *PeerList

func (*GetPeersResponse) GetResponse

func (m *GetPeersResponse) GetResponse() isGetPeersResponse_Response

func (*GetPeersResponse) GetServiceErrorCode

func (x *GetPeersResponse) GetServiceErrorCode() ServiceErrorCode

func (*GetPeersResponse) ProtoMessage

func (*GetPeersResponse) ProtoMessage()

func (*GetPeersResponse) ProtoReflect

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

func (*GetPeersResponse) Reset

func (x *GetPeersResponse) Reset()

func (*GetPeersResponse) String

func (x *GetPeersResponse) String() string

type GetPeersResponse_MeshnetErrorCode

type GetPeersResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,3,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type GetPeersResponse_Peers

type GetPeersResponse_Peers struct {
	Peers *PeerList `protobuf:"bytes,1,opt,name=peers,proto3,oneof"`
}

type GetPeersResponse_ServiceErrorCode

type GetPeersResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,2,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type Invite

type Invite struct {
	Email     string                 `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Os        string                 `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"`
	// contains filtered or unexported fields
}

Invite defines the structure of the meshnet invite

func (*Invite) Descriptor deprecated

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

Deprecated: Use Invite.ProtoReflect.Descriptor instead.

func (*Invite) GetEmail

func (x *Invite) GetEmail() string

func (*Invite) GetExpiresAt

func (x *Invite) GetExpiresAt() *timestamppb.Timestamp

func (*Invite) GetOs

func (x *Invite) GetOs() string

func (*Invite) ProtoMessage

func (*Invite) ProtoMessage()

func (*Invite) ProtoReflect

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

func (*Invite) Reset

func (x *Invite) Reset()

func (*Invite) String

func (x *Invite) String() string

type InviteRequest

type InviteRequest struct {

	// email is the email of the invitation sender
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// allowIncomingTraffic defines that another peer is allowed
	// to send traffic to this device
	AllowIncomingTraffic bool `protobuf:"varint,2,opt,name=allowIncomingTraffic,proto3" json:"allowIncomingTraffic,omitempty"`
	// AllowTrafficRouting defines that another peer is allowed to
	// route traffic through this device
	AllowTrafficRouting bool `protobuf:"varint,3,opt,name=allowTrafficRouting,proto3" json:"allowTrafficRouting,omitempty"`
	// AllowLocalNetwork defines that another peer is allowed to
	// access device's local network when routing traffic through this device
	AllowLocalNetwork bool `protobuf:"varint,4,opt,name=allowLocalNetwork,proto3" json:"allowLocalNetwork,omitempty"`
	// AllowLocalNetwork defines that another peer is allowed to send files to this device
	AllowFileshare bool `protobuf:"varint,5,opt,name=allowFileshare,proto3" json:"allowFileshare,omitempty"`
	// contains filtered or unexported fields
}

InviteRequest defines an accepting response request for a meshnet invitation InviteRequest is the same as the accepting to the invitation. Both specify the email and allow traffic flags

func (*InviteRequest) Descriptor deprecated

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

Deprecated: Use InviteRequest.ProtoReflect.Descriptor instead.

func (*InviteRequest) GetAllowFileshare

func (x *InviteRequest) GetAllowFileshare() bool

func (*InviteRequest) GetAllowIncomingTraffic

func (x *InviteRequest) GetAllowIncomingTraffic() bool

func (*InviteRequest) GetAllowLocalNetwork

func (x *InviteRequest) GetAllowLocalNetwork() bool

func (*InviteRequest) GetAllowTrafficRouting

func (x *InviteRequest) GetAllowTrafficRouting() bool

func (*InviteRequest) GetEmail

func (x *InviteRequest) GetEmail() string

func (*InviteRequest) ProtoMessage

func (*InviteRequest) ProtoMessage()

func (*InviteRequest) ProtoReflect

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

func (*InviteRequest) Reset

func (x *InviteRequest) Reset()

func (*InviteRequest) String

func (x *InviteRequest) String() string

type InviteResponse

type InviteResponse struct {

	// Types that are assignable to Response:
	//
	//	*InviteResponse_Empty
	//	*InviteResponse_InviteResponseErrorCode
	//	*InviteResponse_ServiceErrorCode
	//	*InviteResponse_MeshnetErrorCode
	Response isInviteResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

InviteResponse defines the response to the invite send

func (*InviteResponse) Descriptor deprecated

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

Deprecated: Use InviteResponse.ProtoReflect.Descriptor instead.

func (*InviteResponse) GetEmpty

func (x *InviteResponse) GetEmpty() *Empty

func (*InviteResponse) GetInviteResponseErrorCode

func (x *InviteResponse) GetInviteResponseErrorCode() InviteResponseErrorCode

func (*InviteResponse) GetMeshnetErrorCode

func (x *InviteResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*InviteResponse) GetResponse

func (m *InviteResponse) GetResponse() isInviteResponse_Response

func (*InviteResponse) GetServiceErrorCode

func (x *InviteResponse) GetServiceErrorCode() ServiceErrorCode

func (*InviteResponse) ProtoMessage

func (*InviteResponse) ProtoMessage()

func (*InviteResponse) ProtoReflect

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

func (*InviteResponse) Reset

func (x *InviteResponse) Reset()

func (*InviteResponse) String

func (x *InviteResponse) String() string

type InviteResponseErrorCode

type InviteResponseErrorCode int32

InviteResponseCode defines a response code specific to the invitation send action

const (
	// ALREADY_EXISTS defines that the invitation to the specified
	// email already exists
	InviteResponseErrorCode_ALREADY_EXISTS InviteResponseErrorCode = 0
	// INVALID_EMAIL defines that the given email is invalid,
	// therefore, cannot receive an invitation
	InviteResponseErrorCode_INVALID_EMAIL InviteResponseErrorCode = 1
	// SAME_ACCOUNT_EMAIL defines that the given email is for the same account,
	// cannot send invite to myself
	InviteResponseErrorCode_SAME_ACCOUNT_EMAIL InviteResponseErrorCode = 2
	// LIMIT_REACHED defines that the weekly invitation limit (20)
	// has been reached
	InviteResponseErrorCode_LIMIT_REACHED InviteResponseErrorCode = 3
	// PEER_COUNT defines that no more devices can be invited
	InviteResponseErrorCode_PEER_COUNT InviteResponseErrorCode = 4
)

func (InviteResponseErrorCode) Descriptor

func (InviteResponseErrorCode) Enum

func (InviteResponseErrorCode) EnumDescriptor deprecated

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

Deprecated: Use InviteResponseErrorCode.Descriptor instead.

func (InviteResponseErrorCode) Number

func (InviteResponseErrorCode) String

func (x InviteResponseErrorCode) String() string

func (InviteResponseErrorCode) Type

type InviteResponse_Empty

type InviteResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type InviteResponse_InviteResponseErrorCode

type InviteResponse_InviteResponseErrorCode struct {
	InviteResponseErrorCode InviteResponseErrorCode `` /* 133-byte string literal not displayed */
}

type InviteResponse_MeshnetErrorCode

type InviteResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,4,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type InviteResponse_ServiceErrorCode

type InviteResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,3,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type InvitesList

type InvitesList struct {
	Sent     []*Invite `protobuf:"bytes,1,rep,name=sent,proto3" json:"sent,omitempty"`
	Received []*Invite `protobuf:"bytes,2,rep,name=received,proto3" json:"received,omitempty"`
	// contains filtered or unexported fields
}

InvitesList defines the list of sent and received invitations

func (*InvitesList) Descriptor deprecated

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

Deprecated: Use InvitesList.ProtoReflect.Descriptor instead.

func (*InvitesList) GetReceived

func (x *InvitesList) GetReceived() []*Invite

func (*InvitesList) GetSent

func (x *InvitesList) GetSent() []*Invite

func (*InvitesList) ProtoMessage

func (*InvitesList) ProtoMessage()

func (*InvitesList) ProtoReflect

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

func (*InvitesList) Reset

func (x *InvitesList) Reset()

func (*InvitesList) String

func (x *InvitesList) String() string

type IsEnabledResponse

type IsEnabledResponse struct {

	// Types that are assignable to Response:
	//
	//	*IsEnabledResponse_Status
	//	*IsEnabledResponse_ErrorCode
	Response isIsEnabledResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*IsEnabledResponse) Descriptor deprecated

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

Deprecated: Use IsEnabledResponse.ProtoReflect.Descriptor instead.

func (*IsEnabledResponse) GetErrorCode

func (x *IsEnabledResponse) GetErrorCode() ServiceErrorCode

func (*IsEnabledResponse) GetResponse

func (m *IsEnabledResponse) GetResponse() isIsEnabledResponse_Response

func (*IsEnabledResponse) GetStatus

func (x *IsEnabledResponse) GetStatus() *EnabledStatus

func (*IsEnabledResponse) ProtoMessage

func (*IsEnabledResponse) ProtoMessage()

func (*IsEnabledResponse) ProtoReflect

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

func (*IsEnabledResponse) Reset

func (x *IsEnabledResponse) Reset()

func (*IsEnabledResponse) String

func (x *IsEnabledResponse) String() string

type IsEnabledResponse_ErrorCode

type IsEnabledResponse_ErrorCode struct {
	ErrorCode ServiceErrorCode `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type IsEnabledResponse_Status

type IsEnabledResponse_Status struct {
	Status *EnabledStatus `protobuf:"bytes,1,opt,name=status,proto3,oneof"`
}

type MeshnetClient

type MeshnetClient interface {
	// EnableMeshnet enables the meshnet on this device
	EnableMeshnet(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MeshnetResponse, error)
	// IsEnabled retrieves whether meshnet is enabled
	IsEnabled(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*IsEnabledResponse, error)
	// DisableMeshnet disables the meshnet on this device
	DisableMeshnet(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MeshnetResponse, error)
	RefreshMeshnet(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MeshnetResponse, error)
	// GetInvites retrieves a list of all the invites related to
	// this device
	GetInvites(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetInvitesResponse, error)
	// Invite sends the invite to the specified email to join the
	// meshnet.
	Invite(ctx context.Context, in *InviteRequest, opts ...grpc.CallOption) (*InviteResponse, error)
	// Invite sends the invite to the specified email to join the
	// meshnet.
	RevokeInvite(ctx context.Context, in *DenyInviteRequest, opts ...grpc.CallOption) (*RespondToInviteResponse, error)
	// AcceptInvite accepts the invite to join someone's meshnet
	AcceptInvite(ctx context.Context, in *InviteRequest, opts ...grpc.CallOption) (*RespondToInviteResponse, error)
	// AcceptInvite denies the invite to join someone's meshnet
	DenyInvite(ctx context.Context, in *DenyInviteRequest, opts ...grpc.CallOption) (*RespondToInviteResponse, error)
	// GetPeers retries the list of all meshnet peers related to
	// this device
	GetPeers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetPeersResponse, error)
	// RemovePeer removes a peer from the meshnet
	RemovePeer(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*RemovePeerResponse, error)
	// ChangePeerNickname changes(set/remove) the nickname for a meshnet peer
	ChangePeerNickname(ctx context.Context, in *ChangePeerNicknameRequest, opts ...grpc.CallOption) (*ChangeNicknameResponse, error)
	// ChangeMachineNickname changes the current machine meshnet nickname
	ChangeMachineNickname(ctx context.Context, in *ChangeMachineNicknameRequest, opts ...grpc.CallOption) (*ChangeNicknameResponse, error)
	// AllowRouting allows a peer to route traffic through this
	// device
	AllowRouting(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*AllowRoutingResponse, error)
	// DenyRouting allows a peer to route traffic through this
	// device
	DenyRouting(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*DenyRoutingResponse, error)
	// AllowIncoming allows a peer to send traffic to this device
	AllowIncoming(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*AllowIncomingResponse, error)
	// DenyIncoming denies a peer to send traffic to this device
	DenyIncoming(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*DenyIncomingResponse, error)
	// AllowLocalNetwork allows a peer to access local network when
	// routing through this device
	AllowLocalNetwork(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*AllowLocalNetworkResponse, error)
	// DenyLocalNetwork denies a peer to access local network when
	// routing through this device
	DenyLocalNetwork(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*DenyLocalNetworkResponse, error)
	// AllowFileshare allows peer to send files to this device
	AllowFileshare(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*AllowFileshareResponse, error)
	// DenyFileshare denies a peer to send files to this device
	DenyFileshare(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*DenyFileshareResponse, error)
	// EnableAutomaticFileshare from peer
	EnableAutomaticFileshare(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*EnableAutomaticFileshareResponse, error)
	// DisableAutomaticFileshare from peer
	DisableAutomaticFileshare(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*DisableAutomaticFileshareResponse, error)
	Connect(ctx context.Context, in *UpdatePeerRequest, opts ...grpc.CallOption) (*ConnectResponse, error)
	// NotifyNewTransfer notifies meshnet service about a newly created transaction so it can
	// notify a corresponding meshnet peer
	NotifyNewTransfer(ctx context.Context, in *NewTransferNotification, opts ...grpc.CallOption) (*NotifyNewTransferResponse, error)
	// GetPrivateKey is used to send self private key over to fileshare daemon
	GetPrivateKey(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PrivateKeyResponse, error)
}

MeshnetClient is the client API for Meshnet 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 NewMeshnetClient

func NewMeshnetClient(cc grpc.ClientConnInterface) MeshnetClient

type MeshnetErrorCode

type MeshnetErrorCode int32

MeshnetErrorCode defines a set of meshnet specific error codes.

const (
	MeshnetErrorCode_NOT_REGISTERED   MeshnetErrorCode = 0
	MeshnetErrorCode_LIB_FAILURE      MeshnetErrorCode = 1
	MeshnetErrorCode_ALREADY_ENABLED  MeshnetErrorCode = 3
	MeshnetErrorCode_ALREADY_DISABLED MeshnetErrorCode = 4
	MeshnetErrorCode_NOT_ENABLED      MeshnetErrorCode = 5
	MeshnetErrorCode_TECH_FAILURE     MeshnetErrorCode = 6
	MeshnetErrorCode_TUNNEL_CLOSED    MeshnetErrorCode = 7
)

func (MeshnetErrorCode) Descriptor

func (MeshnetErrorCode) Enum

func (MeshnetErrorCode) EnumDescriptor deprecated

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

Deprecated: Use MeshnetErrorCode.Descriptor instead.

func (MeshnetErrorCode) Number

func (MeshnetErrorCode) String

func (x MeshnetErrorCode) String() string

func (MeshnetErrorCode) Type

type MeshnetResponse

type MeshnetResponse struct {

	// Types that are assignable to Response:
	//
	//	*MeshnetResponse_Empty
	//	*MeshnetResponse_ServiceError
	//	*MeshnetResponse_MeshnetError
	Response isMeshnetResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

MeshnetErrorCode is one of the: - Empty response - Service error - Meshnet error

func (*MeshnetResponse) Descriptor deprecated

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

Deprecated: Use MeshnetResponse.ProtoReflect.Descriptor instead.

func (*MeshnetResponse) GetEmpty

func (x *MeshnetResponse) GetEmpty() *Empty

func (*MeshnetResponse) GetMeshnetError

func (x *MeshnetResponse) GetMeshnetError() MeshnetErrorCode

func (*MeshnetResponse) GetResponse

func (m *MeshnetResponse) GetResponse() isMeshnetResponse_Response

func (*MeshnetResponse) GetServiceError

func (x *MeshnetResponse) GetServiceError() ServiceErrorCode

func (*MeshnetResponse) ProtoMessage

func (*MeshnetResponse) ProtoMessage()

func (*MeshnetResponse) ProtoReflect

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

func (*MeshnetResponse) Reset

func (x *MeshnetResponse) Reset()

func (*MeshnetResponse) String

func (x *MeshnetResponse) String() string

type MeshnetResponse_Empty

type MeshnetResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type MeshnetResponse_MeshnetError

type MeshnetResponse_MeshnetError struct {
	MeshnetError MeshnetErrorCode `protobuf:"varint,3,opt,name=meshnet_error,json=meshnetError,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type MeshnetResponse_ServiceError

type MeshnetResponse_ServiceError struct {
	ServiceError ServiceErrorCode `protobuf:"varint,2,opt,name=service_error,json=serviceError,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type MeshnetServer

type MeshnetServer interface {
	// EnableMeshnet enables the meshnet on this device
	EnableMeshnet(context.Context, *Empty) (*MeshnetResponse, error)
	// IsEnabled retrieves whether meshnet is enabled
	IsEnabled(context.Context, *Empty) (*IsEnabledResponse, error)
	// DisableMeshnet disables the meshnet on this device
	DisableMeshnet(context.Context, *Empty) (*MeshnetResponse, error)
	RefreshMeshnet(context.Context, *Empty) (*MeshnetResponse, error)
	// GetInvites retrieves a list of all the invites related to
	// this device
	GetInvites(context.Context, *Empty) (*GetInvitesResponse, error)
	// Invite sends the invite to the specified email to join the
	// meshnet.
	Invite(context.Context, *InviteRequest) (*InviteResponse, error)
	// Invite sends the invite to the specified email to join the
	// meshnet.
	RevokeInvite(context.Context, *DenyInviteRequest) (*RespondToInviteResponse, error)
	// AcceptInvite accepts the invite to join someone's meshnet
	AcceptInvite(context.Context, *InviteRequest) (*RespondToInviteResponse, error)
	// AcceptInvite denies the invite to join someone's meshnet
	DenyInvite(context.Context, *DenyInviteRequest) (*RespondToInviteResponse, error)
	// GetPeers retries the list of all meshnet peers related to
	// this device
	GetPeers(context.Context, *Empty) (*GetPeersResponse, error)
	// RemovePeer removes a peer from the meshnet
	RemovePeer(context.Context, *UpdatePeerRequest) (*RemovePeerResponse, error)
	// ChangePeerNickname changes(set/remove) the nickname for a meshnet peer
	ChangePeerNickname(context.Context, *ChangePeerNicknameRequest) (*ChangeNicknameResponse, error)
	// ChangeMachineNickname changes the current machine meshnet nickname
	ChangeMachineNickname(context.Context, *ChangeMachineNicknameRequest) (*ChangeNicknameResponse, error)
	// AllowRouting allows a peer to route traffic through this
	// device
	AllowRouting(context.Context, *UpdatePeerRequest) (*AllowRoutingResponse, error)
	// DenyRouting allows a peer to route traffic through this
	// device
	DenyRouting(context.Context, *UpdatePeerRequest) (*DenyRoutingResponse, error)
	// AllowIncoming allows a peer to send traffic to this device
	AllowIncoming(context.Context, *UpdatePeerRequest) (*AllowIncomingResponse, error)
	// DenyIncoming denies a peer to send traffic to this device
	DenyIncoming(context.Context, *UpdatePeerRequest) (*DenyIncomingResponse, error)
	// AllowLocalNetwork allows a peer to access local network when
	// routing through this device
	AllowLocalNetwork(context.Context, *UpdatePeerRequest) (*AllowLocalNetworkResponse, error)
	// DenyLocalNetwork denies a peer to access local network when
	// routing through this device
	DenyLocalNetwork(context.Context, *UpdatePeerRequest) (*DenyLocalNetworkResponse, error)
	// AllowFileshare allows peer to send files to this device
	AllowFileshare(context.Context, *UpdatePeerRequest) (*AllowFileshareResponse, error)
	// DenyFileshare denies a peer to send files to this device
	DenyFileshare(context.Context, *UpdatePeerRequest) (*DenyFileshareResponse, error)
	// EnableAutomaticFileshare from peer
	EnableAutomaticFileshare(context.Context, *UpdatePeerRequest) (*EnableAutomaticFileshareResponse, error)
	// DisableAutomaticFileshare from peer
	DisableAutomaticFileshare(context.Context, *UpdatePeerRequest) (*DisableAutomaticFileshareResponse, error)
	Connect(context.Context, *UpdatePeerRequest) (*ConnectResponse, error)
	// NotifyNewTransfer notifies meshnet service about a newly created transaction so it can
	// notify a corresponding meshnet peer
	NotifyNewTransfer(context.Context, *NewTransferNotification) (*NotifyNewTransferResponse, error)
	// GetPrivateKey is used to send self private key over to fileshare daemon
	GetPrivateKey(context.Context, *Empty) (*PrivateKeyResponse, error)
	// contains filtered or unexported methods
}

MeshnetServer is the server API for Meshnet service. All implementations must embed UnimplementedMeshnetServer for forward compatibility

type NewTransferNotification

type NewTransferNotification struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`                 // Identifier of a device
	Os         string `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"`                                 // Operating system of a peer
	FileName   string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`     // Name of a file which is being sent. Empty if file_count > 1
	FileCount  int32  `protobuf:"varint,4,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"` // Amount of files being sent
	// contains filtered or unexported fields
}

NewTransferNotification defines a notification structure about a new transfer

func (*NewTransferNotification) Descriptor deprecated

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

Deprecated: Use NewTransferNotification.ProtoReflect.Descriptor instead.

func (*NewTransferNotification) GetFileCount

func (x *NewTransferNotification) GetFileCount() int32

func (*NewTransferNotification) GetFileName

func (x *NewTransferNotification) GetFileName() string

func (*NewTransferNotification) GetIdentifier

func (x *NewTransferNotification) GetIdentifier() string

func (*NewTransferNotification) GetOs

func (x *NewTransferNotification) GetOs() string

func (*NewTransferNotification) ProtoMessage

func (*NewTransferNotification) ProtoMessage()

func (*NewTransferNotification) ProtoReflect

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

func (*NewTransferNotification) Reset

func (x *NewTransferNotification) Reset()

func (*NewTransferNotification) String

func (x *NewTransferNotification) String() string

type NotifyNewTransferResponse

type NotifyNewTransferResponse struct {

	// Types that are assignable to Response:
	//	*NotifyNewTransferResponse_Empty
	//	*NotifyNewTransferResponse_UpdatePeerErrorCode
	//	*NotifyNewTransferResponse_ServiceErrorCode
	//	*NotifyNewTransferResponse_MeshnetErrorCode
	Response isNotifyNewTransferResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

NotifyNewTransferResponse defines a response of new transfer notification

func (*NotifyNewTransferResponse) Descriptor deprecated

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

Deprecated: Use NotifyNewTransferResponse.ProtoReflect.Descriptor instead.

func (*NotifyNewTransferResponse) GetEmpty

func (x *NotifyNewTransferResponse) GetEmpty() *Empty

func (*NotifyNewTransferResponse) GetMeshnetErrorCode

func (x *NotifyNewTransferResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*NotifyNewTransferResponse) GetResponse

func (m *NotifyNewTransferResponse) GetResponse() isNotifyNewTransferResponse_Response

func (*NotifyNewTransferResponse) GetServiceErrorCode

func (x *NotifyNewTransferResponse) GetServiceErrorCode() ServiceErrorCode

func (*NotifyNewTransferResponse) GetUpdatePeerErrorCode

func (x *NotifyNewTransferResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*NotifyNewTransferResponse) ProtoMessage

func (*NotifyNewTransferResponse) ProtoMessage()

func (*NotifyNewTransferResponse) ProtoReflect

func (*NotifyNewTransferResponse) Reset

func (x *NotifyNewTransferResponse) Reset()

func (*NotifyNewTransferResponse) String

func (x *NotifyNewTransferResponse) String() string

type NotifyNewTransferResponse_Empty

type NotifyNewTransferResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type NotifyNewTransferResponse_MeshnetErrorCode

type NotifyNewTransferResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,4,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type NotifyNewTransferResponse_ServiceErrorCode

type NotifyNewTransferResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,3,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type NotifyNewTransferResponse_UpdatePeerErrorCode

type NotifyNewTransferResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type Peer

type Peer struct {
	Identifier            string     `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Pubkey                string     `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Ip                    string     `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Endpoints             []string   `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Os                    string     `protobuf:"bytes,5,opt,name=os,proto3" json:"os,omitempty"`
	OsVersion             string     `protobuf:"bytes,6,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
	Hostname              string     `protobuf:"bytes,7,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Distro                string     `protobuf:"bytes,8,opt,name=distro,proto3" json:"distro,omitempty"`
	Email                 string     `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"`
	IsInboundAllowed      bool       `protobuf:"varint,10,opt,name=is_inbound_allowed,json=isInboundAllowed,proto3" json:"is_inbound_allowed,omitempty"`
	IsRoutable            bool       `protobuf:"varint,11,opt,name=is_routable,json=isRoutable,proto3" json:"is_routable,omitempty"`
	IsLocalNetworkAllowed bool       `` /* 130-byte string literal not displayed */
	IsFileshareAllowed    bool       `protobuf:"varint,17,opt,name=is_fileshare_allowed,json=isFileshareAllowed,proto3" json:"is_fileshare_allowed,omitempty"`
	DoIAllowInbound       bool       `protobuf:"varint,12,opt,name=do_i_allow_inbound,json=doIAllowInbound,proto3" json:"do_i_allow_inbound,omitempty"`
	DoIAllowRouting       bool       `protobuf:"varint,13,opt,name=do_i_allow_routing,json=doIAllowRouting,proto3" json:"do_i_allow_routing,omitempty"`
	DoIAllowLocalNetwork  bool       `` /* 129-byte string literal not displayed */
	DoIAllowFileshare     bool       `protobuf:"varint,18,opt,name=do_i_allow_fileshare,json=doIAllowFileshare,proto3" json:"do_i_allow_fileshare,omitempty"`
	AlwaysAcceptFiles     bool       `protobuf:"varint,19,opt,name=always_accept_files,json=alwaysAcceptFiles,proto3" json:"always_accept_files,omitempty"`
	Status                PeerStatus `protobuf:"varint,14,opt,name=status,proto3,enum=meshpb.PeerStatus" json:"status,omitempty"`
	Nickname              string     `protobuf:"bytes,20,opt,name=nickname,proto3" json:"nickname,omitempty"`
	// contains filtered or unexported fields
}

Peer defines a single meshnet peer

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAlwaysAcceptFiles

func (x *Peer) GetAlwaysAcceptFiles() bool

func (*Peer) GetDistro

func (x *Peer) GetDistro() string

func (*Peer) GetDoIAllowFileshare

func (x *Peer) GetDoIAllowFileshare() bool

func (*Peer) GetDoIAllowInbound

func (x *Peer) GetDoIAllowInbound() bool

func (*Peer) GetDoIAllowLocalNetwork

func (x *Peer) GetDoIAllowLocalNetwork() bool

func (*Peer) GetDoIAllowRouting

func (x *Peer) GetDoIAllowRouting() bool

func (*Peer) GetEmail

func (x *Peer) GetEmail() string

func (*Peer) GetEndpoints

func (x *Peer) GetEndpoints() []string

func (*Peer) GetHostname

func (x *Peer) GetHostname() string

func (*Peer) GetIdentifier

func (x *Peer) GetIdentifier() string

func (*Peer) GetIp

func (x *Peer) GetIp() string

func (*Peer) GetIsFileshareAllowed

func (x *Peer) GetIsFileshareAllowed() bool

func (*Peer) GetIsInboundAllowed

func (x *Peer) GetIsInboundAllowed() bool

func (*Peer) GetIsLocalNetworkAllowed

func (x *Peer) GetIsLocalNetworkAllowed() bool

func (*Peer) GetIsRoutable

func (x *Peer) GetIsRoutable() bool

func (*Peer) GetNickname

func (x *Peer) GetNickname() string

func (*Peer) GetOs

func (x *Peer) GetOs() string

func (*Peer) GetOsVersion

func (x *Peer) GetOsVersion() string

func (*Peer) GetPubkey

func (x *Peer) GetPubkey() string

func (*Peer) GetStatus

func (x *Peer) GetStatus() PeerStatus

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

type PeerList

type PeerList struct {
	Self     *Peer   `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"`
	Local    []*Peer `protobuf:"bytes,2,rep,name=local,proto3" json:"local,omitempty"`
	External []*Peer `protobuf:"bytes,3,rep,name=external,proto3" json:"external,omitempty"`
	// contains filtered or unexported fields
}

PeerList defines a list of all the peers related to the device

func (*PeerList) Descriptor deprecated

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

Deprecated: Use PeerList.ProtoReflect.Descriptor instead.

func (*PeerList) GetExternal

func (x *PeerList) GetExternal() []*Peer

func (*PeerList) GetLocal

func (x *PeerList) GetLocal() []*Peer

func (*PeerList) GetSelf

func (x *PeerList) GetSelf() *Peer

func (*PeerList) ProtoMessage

func (*PeerList) ProtoMessage()

func (*PeerList) ProtoReflect

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

func (*PeerList) Reset

func (x *PeerList) Reset()

func (*PeerList) String

func (x *PeerList) String() string

type PeerStatus

type PeerStatus int32

PeerStatus defines the current connection status with the peer

const (
	PeerStatus_DISCONNECTED PeerStatus = 0
	PeerStatus_CONNECTED    PeerStatus = 1
)

func (PeerStatus) Descriptor

func (PeerStatus) Descriptor() protoreflect.EnumDescriptor

func (PeerStatus) Enum

func (x PeerStatus) Enum() *PeerStatus

func (PeerStatus) EnumDescriptor deprecated

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

Deprecated: Use PeerStatus.Descriptor instead.

func (PeerStatus) Number

func (x PeerStatus) Number() protoreflect.EnumNumber

func (PeerStatus) String

func (x PeerStatus) String() string

func (PeerStatus) Type

type PrivateKeyResponse

type PrivateKeyResponse struct {

	// Types that are assignable to Response:
	//
	//	*PrivateKeyResponse_PrivateKey
	//	*PrivateKeyResponse_ServiceErrorCode
	Response isPrivateKeyResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*PrivateKeyResponse) Descriptor deprecated

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

Deprecated: Use PrivateKeyResponse.ProtoReflect.Descriptor instead.

func (*PrivateKeyResponse) GetPrivateKey

func (x *PrivateKeyResponse) GetPrivateKey() string

func (*PrivateKeyResponse) GetResponse

func (m *PrivateKeyResponse) GetResponse() isPrivateKeyResponse_Response

func (*PrivateKeyResponse) GetServiceErrorCode

func (x *PrivateKeyResponse) GetServiceErrorCode() ServiceErrorCode

func (*PrivateKeyResponse) ProtoMessage

func (*PrivateKeyResponse) ProtoMessage()

func (*PrivateKeyResponse) ProtoReflect

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

func (*PrivateKeyResponse) Reset

func (x *PrivateKeyResponse) Reset()

func (*PrivateKeyResponse) String

func (x *PrivateKeyResponse) String() string

type PrivateKeyResponse_PrivateKey

type PrivateKeyResponse_PrivateKey struct {
	PrivateKey string `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3,oneof"`
}

type PrivateKeyResponse_ServiceErrorCode

type PrivateKeyResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,2,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type RemovePeerResponse

type RemovePeerResponse struct {

	// Types that are assignable to Response:
	//
	//	*RemovePeerResponse_Empty
	//	*RemovePeerResponse_UpdatePeerErrorCode
	//	*RemovePeerResponse_ServiceErrorCode
	//	*RemovePeerResponse_MeshnetErrorCode
	Response isRemovePeerResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

RemovePeerResponse defines a peer removal response

func (*RemovePeerResponse) Descriptor deprecated

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

Deprecated: Use RemovePeerResponse.ProtoReflect.Descriptor instead.

func (*RemovePeerResponse) GetEmpty

func (x *RemovePeerResponse) GetEmpty() *Empty

func (*RemovePeerResponse) GetMeshnetErrorCode

func (x *RemovePeerResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*RemovePeerResponse) GetResponse

func (m *RemovePeerResponse) GetResponse() isRemovePeerResponse_Response

func (*RemovePeerResponse) GetServiceErrorCode

func (x *RemovePeerResponse) GetServiceErrorCode() ServiceErrorCode

func (*RemovePeerResponse) GetUpdatePeerErrorCode

func (x *RemovePeerResponse) GetUpdatePeerErrorCode() UpdatePeerErrorCode

func (*RemovePeerResponse) ProtoMessage

func (*RemovePeerResponse) ProtoMessage()

func (*RemovePeerResponse) ProtoReflect

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

func (*RemovePeerResponse) Reset

func (x *RemovePeerResponse) Reset()

func (*RemovePeerResponse) String

func (x *RemovePeerResponse) String() string

type RemovePeerResponse_Empty

type RemovePeerResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type RemovePeerResponse_MeshnetErrorCode

type RemovePeerResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,4,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type RemovePeerResponse_ServiceErrorCode

type RemovePeerResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,3,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type RemovePeerResponse_UpdatePeerErrorCode

type RemovePeerResponse_UpdatePeerErrorCode struct {
	UpdatePeerErrorCode UpdatePeerErrorCode `protobuf:"varint,2,opt,name=update_peer_error_code,json=updatePeerErrorCode,proto3,enum=meshpb.UpdatePeerErrorCode,oneof"`
}

type RespondToInviteErrorCode

type RespondToInviteErrorCode int32

RespondToInviteErrorCode defines the error of meshnet service response to the invitation response

const (
	// UNKNOWN defines that the exact error was not determined
	RespondToInviteErrorCode_UNKNOWN RespondToInviteErrorCode = 0
	// NO_SUCH_INVITATION defines that the request was not handled
	// successfully
	RespondToInviteErrorCode_NO_SUCH_INVITATION RespondToInviteErrorCode = 1
	// DEVICE_COUNT defines that no more devices can be added
	RespondToInviteErrorCode_DEVICE_COUNT RespondToInviteErrorCode = 2
)

func (RespondToInviteErrorCode) Descriptor

func (RespondToInviteErrorCode) Enum

func (RespondToInviteErrorCode) EnumDescriptor deprecated

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

Deprecated: Use RespondToInviteErrorCode.Descriptor instead.

func (RespondToInviteErrorCode) Number

func (RespondToInviteErrorCode) String

func (x RespondToInviteErrorCode) String() string

func (RespondToInviteErrorCode) Type

type RespondToInviteResponse

type RespondToInviteResponse struct {

	// Types that are assignable to Response:
	//
	//	*RespondToInviteResponse_Empty
	//	*RespondToInviteResponse_RespondToInviteErrorCode
	//	*RespondToInviteResponse_ServiceErrorCode
	//	*RespondToInviteResponse_MeshnetErrorCode
	Response isRespondToInviteResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

RespondToInviteResponse defines an empty gRPC response with the status

func (*RespondToInviteResponse) Descriptor deprecated

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

Deprecated: Use RespondToInviteResponse.ProtoReflect.Descriptor instead.

func (*RespondToInviteResponse) GetEmpty

func (x *RespondToInviteResponse) GetEmpty() *Empty

func (*RespondToInviteResponse) GetMeshnetErrorCode

func (x *RespondToInviteResponse) GetMeshnetErrorCode() MeshnetErrorCode

func (*RespondToInviteResponse) GetRespondToInviteErrorCode

func (x *RespondToInviteResponse) GetRespondToInviteErrorCode() RespondToInviteErrorCode

func (*RespondToInviteResponse) GetResponse

func (m *RespondToInviteResponse) GetResponse() isRespondToInviteResponse_Response

func (*RespondToInviteResponse) GetServiceErrorCode

func (x *RespondToInviteResponse) GetServiceErrorCode() ServiceErrorCode

func (*RespondToInviteResponse) ProtoMessage

func (*RespondToInviteResponse) ProtoMessage()

func (*RespondToInviteResponse) ProtoReflect

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

func (*RespondToInviteResponse) Reset

func (x *RespondToInviteResponse) Reset()

func (*RespondToInviteResponse) String

func (x *RespondToInviteResponse) String() string

type RespondToInviteResponse_Empty

type RespondToInviteResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type RespondToInviteResponse_MeshnetErrorCode

type RespondToInviteResponse_MeshnetErrorCode struct {
	MeshnetErrorCode MeshnetErrorCode `protobuf:"varint,4,opt,name=meshnet_error_code,json=meshnetErrorCode,proto3,enum=meshpb.MeshnetErrorCode,oneof"`
}

type RespondToInviteResponse_RespondToInviteErrorCode

type RespondToInviteResponse_RespondToInviteErrorCode struct {
	RespondToInviteErrorCode RespondToInviteErrorCode `` /* 137-byte string literal not displayed */
}

type RespondToInviteResponse_ServiceErrorCode

type RespondToInviteResponse_ServiceErrorCode struct {
	ServiceErrorCode ServiceErrorCode `protobuf:"varint,3,opt,name=service_error_code,json=serviceErrorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type ServiceBoolResponse

type ServiceBoolResponse struct {

	// Types that are assignable to Response:
	//
	//	*ServiceBoolResponse_Value
	//	*ServiceBoolResponse_ErrorCode
	Response isServiceBoolResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

ServiceBoolResponse is either a bool response or a service error

func (*ServiceBoolResponse) Descriptor deprecated

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

Deprecated: Use ServiceBoolResponse.ProtoReflect.Descriptor instead.

func (*ServiceBoolResponse) GetErrorCode

func (x *ServiceBoolResponse) GetErrorCode() ServiceErrorCode

func (*ServiceBoolResponse) GetResponse

func (m *ServiceBoolResponse) GetResponse() isServiceBoolResponse_Response

func (*ServiceBoolResponse) GetValue

func (x *ServiceBoolResponse) GetValue() bool

func (*ServiceBoolResponse) ProtoMessage

func (*ServiceBoolResponse) ProtoMessage()

func (*ServiceBoolResponse) ProtoReflect

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

func (*ServiceBoolResponse) Reset

func (x *ServiceBoolResponse) Reset()

func (*ServiceBoolResponse) String

func (x *ServiceBoolResponse) String() string

type ServiceBoolResponse_ErrorCode

type ServiceBoolResponse_ErrorCode struct {
	ErrorCode ServiceErrorCode `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type ServiceBoolResponse_Value

type ServiceBoolResponse_Value struct {
	Value bool `protobuf:"varint,1,opt,name=value,proto3,oneof"`
}

type ServiceErrorCode

type ServiceErrorCode int32

ServiceErrorCode defines a set of error codes which handling does not depend on any specific command used.

const (
	ServiceErrorCode_NOT_LOGGED_IN  ServiceErrorCode = 0
	ServiceErrorCode_API_FAILURE    ServiceErrorCode = 1
	ServiceErrorCode_CONFIG_FAILURE ServiceErrorCode = 2
)

func (ServiceErrorCode) Descriptor

func (ServiceErrorCode) Enum

func (ServiceErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ServiceErrorCode.Descriptor instead.

func (ServiceErrorCode) Number

func (ServiceErrorCode) String

func (x ServiceErrorCode) String() string

func (ServiceErrorCode) Type

type ServiceResponse

type ServiceResponse struct {

	// Types that are assignable to Response:
	//
	//	*ServiceResponse_Empty
	//	*ServiceResponse_ErrorCode
	Response isServiceResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

ServiceResponse is either an empty response or a service error

func (*ServiceResponse) Descriptor deprecated

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

Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead.

func (*ServiceResponse) GetEmpty

func (x *ServiceResponse) GetEmpty() *Empty

func (*ServiceResponse) GetErrorCode

func (x *ServiceResponse) GetErrorCode() ServiceErrorCode

func (*ServiceResponse) GetResponse

func (m *ServiceResponse) GetResponse() isServiceResponse_Response

func (*ServiceResponse) ProtoMessage

func (*ServiceResponse) ProtoMessage()

func (*ServiceResponse) ProtoReflect

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

func (*ServiceResponse) Reset

func (x *ServiceResponse) Reset()

func (*ServiceResponse) String

func (x *ServiceResponse) String() string

type ServiceResponse_Empty

type ServiceResponse_Empty struct {
	Empty *Empty `protobuf:"bytes,1,opt,name=empty,proto3,oneof"`
}

type ServiceResponse_ErrorCode

type ServiceResponse_ErrorCode struct {
	ErrorCode ServiceErrorCode `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3,enum=meshpb.ServiceErrorCode,oneof"`
}

type UnimplementedMeshnetServer

type UnimplementedMeshnetServer struct {
}

UnimplementedMeshnetServer must be embedded to have forward compatible implementations.

func (UnimplementedMeshnetServer) AcceptInvite

func (UnimplementedMeshnetServer) AllowFileshare

func (UnimplementedMeshnetServer) AllowIncoming

func (UnimplementedMeshnetServer) AllowLocalNetwork

func (UnimplementedMeshnetServer) AllowRouting

func (UnimplementedMeshnetServer) ChangeMachineNickname

func (UnimplementedMeshnetServer) ChangePeerNickname

func (UnimplementedMeshnetServer) Connect

func (UnimplementedMeshnetServer) DenyFileshare

func (UnimplementedMeshnetServer) DenyIncoming

func (UnimplementedMeshnetServer) DenyInvite

func (UnimplementedMeshnetServer) DenyLocalNetwork

func (UnimplementedMeshnetServer) DenyRouting

func (UnimplementedMeshnetServer) DisableAutomaticFileshare

func (UnimplementedMeshnetServer) DisableMeshnet

func (UnimplementedMeshnetServer) EnableAutomaticFileshare

func (UnimplementedMeshnetServer) EnableMeshnet

func (UnimplementedMeshnetServer) GetInvites

func (UnimplementedMeshnetServer) GetPeers

func (UnimplementedMeshnetServer) GetPrivateKey

func (UnimplementedMeshnetServer) Invite

func (UnimplementedMeshnetServer) IsEnabled

func (UnimplementedMeshnetServer) NotifyNewTransfer

func (UnimplementedMeshnetServer) RefreshMeshnet

func (UnimplementedMeshnetServer) RemovePeer

func (UnimplementedMeshnetServer) RevokeInvite

type UnsafeMeshnetServer

type UnsafeMeshnetServer interface {
	// contains filtered or unexported methods
}

UnsafeMeshnetServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MeshnetServer will result in compilation errors.

type UpdatePeerErrorCode

type UpdatePeerErrorCode int32

UpdatePeerErrorCode defines an error code on updating a peer within the meshnet

const (
	UpdatePeerErrorCode_PEER_NOT_FOUND UpdatePeerErrorCode = 0
)

func (UpdatePeerErrorCode) Descriptor

func (UpdatePeerErrorCode) Enum

func (UpdatePeerErrorCode) EnumDescriptor deprecated

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

Deprecated: Use UpdatePeerErrorCode.Descriptor instead.

func (UpdatePeerErrorCode) Number

func (UpdatePeerErrorCode) String

func (x UpdatePeerErrorCode) String() string

func (UpdatePeerErrorCode) Type

type UpdatePeerRequest

type UpdatePeerRequest struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

UpdatePeerRequest defines a request to remove a peer from a meshnet

func (*UpdatePeerRequest) Descriptor deprecated

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

Deprecated: Use UpdatePeerRequest.ProtoReflect.Descriptor instead.

func (*UpdatePeerRequest) GetIdentifier

func (x *UpdatePeerRequest) GetIdentifier() string

func (*UpdatePeerRequest) ProtoMessage

func (*UpdatePeerRequest) ProtoMessage()

func (*UpdatePeerRequest) ProtoReflect

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

func (*UpdatePeerRequest) Reset

func (x *UpdatePeerRequest) Reset()

func (*UpdatePeerRequest) String

func (x *UpdatePeerRequest) String() string

Jump to

Keyboard shortcuts

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