freenetpb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_freenet_freenext_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ClientInitMessage

type ClientInitMessage struct {
	Id            string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	LanIps        []string `protobuf:"bytes,2,rep,name=lan_ips,json=lanIps,proto3" json:"lan_ips,omitempty"`
	VpnIps        []string `protobuf:"bytes,3,rep,name=vpn_ips,json=vpnIps,proto3" json:"vpn_ips,omitempty"`
	ClientAddress string   `protobuf:"bytes,4,opt,name=client_address,json=clientAddress,proto3" json:"client_address,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientInitMessage) Descriptor deprecated

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

Deprecated: Use ClientInitMessage.ProtoReflect.Descriptor instead.

func (*ClientInitMessage) GetClientAddress

func (x *ClientInitMessage) GetClientAddress() string

func (*ClientInitMessage) GetId

func (x *ClientInitMessage) GetId() string

func (*ClientInitMessage) GetLanIps

func (x *ClientInitMessage) GetLanIps() []string

func (*ClientInitMessage) GetVpnIps

func (x *ClientInitMessage) GetVpnIps() []string

func (*ClientInitMessage) ProtoMessage

func (*ClientInitMessage) ProtoMessage()

func (*ClientInitMessage) ProtoReflect

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

func (*ClientInitMessage) Reset

func (x *ClientInitMessage) Reset()

func (*ClientInitMessage) String

func (x *ClientInitMessage) String() string

func (*ClientInitMessage) Validate

func (m *ClientInitMessage) Validate() error

Validate checks the field values on ClientInitMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClientInitMessage) ValidateAll

func (m *ClientInitMessage) ValidateAll() error

ValidateAll checks the field values on ClientInitMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClientInitMessageMultiError, or nil if none found.

type ClientInitMessageMultiError

type ClientInitMessageMultiError []error

ClientInitMessageMultiError is an error wrapping multiple validation errors returned by ClientInitMessage.ValidateAll() if the designated constraints aren't met.

func (ClientInitMessageMultiError) AllErrors

func (m ClientInitMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClientInitMessageMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ClientInitMessageValidationError

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

ClientInitMessageValidationError is the validation error returned by ClientInitMessage.Validate if the designated constraints aren't met.

func (ClientInitMessageValidationError) Cause

Cause function returns cause value.

func (ClientInitMessageValidationError) Error

Error satisfies the builtin error interface

func (ClientInitMessageValidationError) ErrorName

ErrorName returns error name.

func (ClientInitMessageValidationError) Field

Field function returns field value.

func (ClientInitMessageValidationError) Key

Key function returns key value.

func (ClientInitMessageValidationError) Reason

Reason function returns reason value.

type ClientMessage

type ClientMessage struct {

	// Types that are assignable to Request:
	//
	//	*ClientMessage_Data
	//	*ClientMessage_ClientInitMessage
	Request isClientMessage_Request `protobuf_oneof:"Request"`
	// Types that are assignable to Response:
	//
	//	*ClientMessage_MessageAck
	Response isClientMessage_Response `protobuf_oneof:"Response"`
	// contains filtered or unexported fields
}

func (*ClientMessage) Descriptor deprecated

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

Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.

func (*ClientMessage) GetClientInitMessage

func (x *ClientMessage) GetClientInitMessage() *ClientInitMessage

func (*ClientMessage) GetData

func (x *ClientMessage) GetData() *Data

func (*ClientMessage) GetMessageAck

func (x *ClientMessage) GetMessageAck() *MessageAck

func (*ClientMessage) GetRequest

func (m *ClientMessage) GetRequest() isClientMessage_Request

func (*ClientMessage) GetResponse

func (m *ClientMessage) GetResponse() isClientMessage_Response

func (*ClientMessage) ProtoMessage

func (*ClientMessage) ProtoMessage()

func (*ClientMessage) ProtoReflect

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

func (*ClientMessage) Reset

func (x *ClientMessage) Reset()

func (*ClientMessage) String

func (x *ClientMessage) String() string

func (*ClientMessage) Validate

func (m *ClientMessage) Validate() error

Validate checks the field values on ClientMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClientMessage) ValidateAll

func (m *ClientMessage) ValidateAll() error

ValidateAll checks the field values on ClientMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClientMessageMultiError, or nil if none found.

type ClientMessageMultiError

type ClientMessageMultiError []error

ClientMessageMultiError is an error wrapping multiple validation errors returned by ClientMessage.ValidateAll() if the designated constraints aren't met.

func (ClientMessageMultiError) AllErrors

func (m ClientMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClientMessageMultiError) Error

func (m ClientMessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ClientMessageValidationError

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

ClientMessageValidationError is the validation error returned by ClientMessage.Validate if the designated constraints aren't met.

func (ClientMessageValidationError) Cause

Cause function returns cause value.

func (ClientMessageValidationError) Error

Error satisfies the builtin error interface

func (ClientMessageValidationError) ErrorName

func (e ClientMessageValidationError) ErrorName() string

ErrorName returns error name.

func (ClientMessageValidationError) Field

Field function returns field value.

func (ClientMessageValidationError) Key

Key function returns key value.

func (ClientMessageValidationError) Reason

Reason function returns reason value.

type ClientMessage_ClientInitMessage

type ClientMessage_ClientInitMessage struct {
	ClientInitMessage *ClientInitMessage `protobuf:"bytes,2,opt,name=client_init_message,json=clientInitMessage,proto3,oneof"`
}

type ClientMessage_Data

type ClientMessage_Data struct {
	Data *Data `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
}

type ClientMessage_MessageAck

type ClientMessage_MessageAck struct {
	MessageAck *MessageAck `protobuf:"bytes,100,opt,name=message_ack,json=messageAck,proto3,oneof"`
}

type Data

type Data struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetData

func (x *Data) GetData() []byte

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

func (*Data) Validate

func (m *Data) Validate() error

Validate checks the field values on Data with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Data) ValidateAll

func (m *Data) ValidateAll() error

ValidateAll checks the field values on Data with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DataMultiError, or nil if none found.

type DataMultiError

type DataMultiError []error

DataMultiError is an error wrapping multiple validation errors returned by Data.ValidateAll() if the designated constraints aren't met.

func (DataMultiError) AllErrors

func (m DataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DataMultiError) Error

func (m DataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DataValidationError

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

DataValidationError is the validation error returned by Data.Validate if the designated constraints aren't met.

func (DataValidationError) Cause

func (e DataValidationError) Cause() error

Cause function returns cause value.

func (DataValidationError) Error

func (e DataValidationError) Error() string

Error satisfies the builtin error interface

func (DataValidationError) ErrorName

func (e DataValidationError) ErrorName() string

ErrorName returns error name.

func (DataValidationError) Field

func (e DataValidationError) Field() string

Field function returns field value.

func (DataValidationError) Key

func (e DataValidationError) Key() bool

Key function returns key value.

func (DataValidationError) Reason

func (e DataValidationError) Reason() string

Reason function returns reason value.

type MessageAck

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

func (*MessageAck) Descriptor deprecated

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

Deprecated: Use MessageAck.ProtoReflect.Descriptor instead.

func (*MessageAck) GetId

func (x *MessageAck) GetId() string

func (*MessageAck) ProtoMessage

func (*MessageAck) ProtoMessage()

func (*MessageAck) ProtoReflect

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

func (*MessageAck) Reset

func (x *MessageAck) Reset()

func (*MessageAck) String

func (x *MessageAck) String() string

func (*MessageAck) Validate

func (m *MessageAck) Validate() error

Validate checks the field values on MessageAck with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MessageAck) ValidateAll

func (m *MessageAck) ValidateAll() error

ValidateAll checks the field values on MessageAck with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MessageAckMultiError, or nil if none found.

type MessageAckMultiError

type MessageAckMultiError []error

MessageAckMultiError is an error wrapping multiple validation errors returned by MessageAck.ValidateAll() if the designated constraints aren't met.

func (MessageAckMultiError) AllErrors

func (m MessageAckMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MessageAckMultiError) Error

func (m MessageAckMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MessageAckValidationError

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

MessageAckValidationError is the validation error returned by MessageAck.Validate if the designated constraints aren't met.

func (MessageAckValidationError) Cause

func (e MessageAckValidationError) Cause() error

Cause function returns cause value.

func (MessageAckValidationError) Error

Error satisfies the builtin error interface

func (MessageAckValidationError) ErrorName

func (e MessageAckValidationError) ErrorName() string

ErrorName returns error name.

func (MessageAckValidationError) Field

Field function returns field value.

func (MessageAckValidationError) Key

Key function returns key value.

func (MessageAckValidationError) Reason

func (e MessageAckValidationError) Reason() string

Reason function returns reason value.

type NeedClientInitMessage

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

func (*NeedClientInitMessage) Descriptor deprecated

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

Deprecated: Use NeedClientInitMessage.ProtoReflect.Descriptor instead.

func (*NeedClientInitMessage) ProtoMessage

func (*NeedClientInitMessage) ProtoMessage()

func (*NeedClientInitMessage) ProtoReflect

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

func (*NeedClientInitMessage) Reset

func (x *NeedClientInitMessage) Reset()

func (*NeedClientInitMessage) String

func (x *NeedClientInitMessage) String() string

func (*NeedClientInitMessage) Validate

func (m *NeedClientInitMessage) Validate() error

Validate checks the field values on NeedClientInitMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*NeedClientInitMessage) ValidateAll

func (m *NeedClientInitMessage) ValidateAll() error

ValidateAll checks the field values on NeedClientInitMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NeedClientInitMessageMultiError, or nil if none found.

type NeedClientInitMessageMultiError

type NeedClientInitMessageMultiError []error

NeedClientInitMessageMultiError is an error wrapping multiple validation errors returned by NeedClientInitMessage.ValidateAll() if the designated constraints aren't met.

func (NeedClientInitMessageMultiError) AllErrors

func (m NeedClientInitMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NeedClientInitMessageMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NeedClientInitMessageValidationError

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

NeedClientInitMessageValidationError is the validation error returned by NeedClientInitMessage.Validate if the designated constraints aren't met.

func (NeedClientInitMessageValidationError) Cause

Cause function returns cause value.

func (NeedClientInitMessageValidationError) Error

Error satisfies the builtin error interface

func (NeedClientInitMessageValidationError) ErrorName

ErrorName returns error name.

func (NeedClientInitMessageValidationError) Field

Field function returns field value.

func (NeedClientInitMessageValidationError) Key

Key function returns key value.

func (NeedClientInitMessageValidationError) Reason

Reason function returns reason value.

type ServerMessage

type ServerMessage struct {

	// Types that are assignable to Request:
	//
	//	*ServerMessage_Data
	//	*ServerMessage_SyncMessage
	//	*ServerMessage_NeedClientInitMessage
	Request isServerMessage_Request `protobuf_oneof:"Request"`
	// Types that are assignable to Response:
	//
	//	*ServerMessage_MessageAck
	Response isServerMessage_Response `protobuf_oneof:"Response"`
	// contains filtered or unexported fields
}

func (*ServerMessage) Descriptor deprecated

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

Deprecated: Use ServerMessage.ProtoReflect.Descriptor instead.

func (*ServerMessage) GetData

func (x *ServerMessage) GetData() *Data

func (*ServerMessage) GetMessageAck

func (x *ServerMessage) GetMessageAck() *MessageAck

func (*ServerMessage) GetNeedClientInitMessage

func (x *ServerMessage) GetNeedClientInitMessage() *NeedClientInitMessage

func (*ServerMessage) GetRequest

func (m *ServerMessage) GetRequest() isServerMessage_Request

func (*ServerMessage) GetResponse

func (m *ServerMessage) GetResponse() isServerMessage_Response

func (*ServerMessage) GetSyncMessage

func (x *ServerMessage) GetSyncMessage() *SyncMessage

func (*ServerMessage) ProtoMessage

func (*ServerMessage) ProtoMessage()

func (*ServerMessage) ProtoReflect

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

func (*ServerMessage) Reset

func (x *ServerMessage) Reset()

func (*ServerMessage) String

func (x *ServerMessage) String() string

func (*ServerMessage) Validate

func (m *ServerMessage) Validate() error

Validate checks the field values on ServerMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerMessage) ValidateAll

func (m *ServerMessage) ValidateAll() error

ValidateAll checks the field values on ServerMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerMessageMultiError, or nil if none found.

type ServerMessageMultiError

type ServerMessageMultiError []error

ServerMessageMultiError is an error wrapping multiple validation errors returned by ServerMessage.ValidateAll() if the designated constraints aren't met.

func (ServerMessageMultiError) AllErrors

func (m ServerMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerMessageMultiError) Error

func (m ServerMessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ServerMessageValidationError

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

ServerMessageValidationError is the validation error returned by ServerMessage.Validate if the designated constraints aren't met.

func (ServerMessageValidationError) Cause

Cause function returns cause value.

func (ServerMessageValidationError) Error

Error satisfies the builtin error interface

func (ServerMessageValidationError) ErrorName

func (e ServerMessageValidationError) ErrorName() string

ErrorName returns error name.

func (ServerMessageValidationError) Field

Field function returns field value.

func (ServerMessageValidationError) Key

Key function returns key value.

func (ServerMessageValidationError) Reason

Reason function returns reason value.

type ServerMessage_Data

type ServerMessage_Data struct {
	Data *Data `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
}

type ServerMessage_MessageAck

type ServerMessage_MessageAck struct {
	MessageAck *MessageAck `protobuf:"bytes,100,opt,name=message_ack,json=messageAck,proto3,oneof"`
}

type ServerMessage_NeedClientInitMessage

type ServerMessage_NeedClientInitMessage struct {
	NeedClientInitMessage *NeedClientInitMessage `protobuf:"bytes,3,opt,name=need_client_init_message,json=needClientInitMessage,proto3,oneof"`
}

type ServerMessage_SyncMessage

type ServerMessage_SyncMessage struct {
	SyncMessage *SyncMessage `protobuf:"bytes,2,opt,name=sync_message,json=syncMessage,proto3,oneof"`
}

type SyncMessage

type SyncMessage struct {
	Id           string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ForwardIps   []string          `protobuf:"bytes,2,rep,name=forward_ips,json=forwardIps,proto3" json:"forward_ips,omitempty"`
	KnownClients map[string]string `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SyncMessage) Descriptor deprecated

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

Deprecated: Use SyncMessage.ProtoReflect.Descriptor instead.

func (*SyncMessage) GetForwardIps

func (x *SyncMessage) GetForwardIps() []string

func (*SyncMessage) GetId

func (x *SyncMessage) GetId() string

func (*SyncMessage) GetKnownClients

func (x *SyncMessage) GetKnownClients() map[string]string

func (*SyncMessage) ProtoMessage

func (*SyncMessage) ProtoMessage()

func (*SyncMessage) ProtoReflect

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

func (*SyncMessage) Reset

func (x *SyncMessage) Reset()

func (*SyncMessage) String

func (x *SyncMessage) String() string

func (*SyncMessage) Validate

func (m *SyncMessage) Validate() error

Validate checks the field values on SyncMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SyncMessage) ValidateAll

func (m *SyncMessage) ValidateAll() error

ValidateAll checks the field values on SyncMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SyncMessageMultiError, or nil if none found.

type SyncMessageMultiError

type SyncMessageMultiError []error

SyncMessageMultiError is an error wrapping multiple validation errors returned by SyncMessage.ValidateAll() if the designated constraints aren't met.

func (SyncMessageMultiError) AllErrors

func (m SyncMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SyncMessageMultiError) Error

func (m SyncMessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SyncMessageValidationError

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

SyncMessageValidationError is the validation error returned by SyncMessage.Validate if the designated constraints aren't met.

func (SyncMessageValidationError) Cause

Cause function returns cause value.

func (SyncMessageValidationError) Error

Error satisfies the builtin error interface

func (SyncMessageValidationError) ErrorName

func (e SyncMessageValidationError) ErrorName() string

ErrorName returns error name.

func (SyncMessageValidationError) Field

Field function returns field value.

func (SyncMessageValidationError) Key

Key function returns key value.

func (SyncMessageValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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