kad_pb

package
v0.0.0-...-541b16f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_kad_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FindNodeRequest

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

func (*FindNodeRequest) Descriptor deprecated

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

Deprecated: Use FindNodeRequest.ProtoReflect.Descriptor instead.

func (*FindNodeRequest) GetNodeId

func (x *FindNodeRequest) GetNodeId() []byte

func (*FindNodeRequest) ProtoMessage

func (*FindNodeRequest) ProtoMessage()

func (*FindNodeRequest) ProtoReflect

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

func (*FindNodeRequest) Reset

func (x *FindNodeRequest) Reset()

func (*FindNodeRequest) String

func (x *FindNodeRequest) String() string

type FindNodeResponse

type FindNodeResponse struct {
	NodeInfos []*NodeInfo `protobuf:"bytes,1,rep,name=node_infos,json=nodeInfos,proto3" json:"node_infos,omitempty"`
	// contains filtered or unexported fields
}

func (*FindNodeResponse) Descriptor deprecated

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

Deprecated: Use FindNodeResponse.ProtoReflect.Descriptor instead.

func (*FindNodeResponse) GetNodeInfos

func (x *FindNodeResponse) GetNodeInfos() []*NodeInfo

func (*FindNodeResponse) ProtoMessage

func (*FindNodeResponse) ProtoMessage()

func (*FindNodeResponse) ProtoReflect

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

func (*FindNodeResponse) Reset

func (x *FindNodeResponse) Reset()

func (*FindNodeResponse) String

func (x *FindNodeResponse) String() string

type FindValueNodesResponse

type FindValueNodesResponse struct {
	NodeInfos []*NodeInfo `protobuf:"bytes,1,rep,name=node_infos,json=nodeInfos,proto3" json:"node_infos,omitempty"`
	// contains filtered or unexported fields
}

func (*FindValueNodesResponse) Descriptor deprecated

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

Deprecated: Use FindValueNodesResponse.ProtoReflect.Descriptor instead.

func (*FindValueNodesResponse) GetNodeInfos

func (x *FindValueNodesResponse) GetNodeInfos() []*NodeInfo

func (*FindValueNodesResponse) ProtoMessage

func (*FindValueNodesResponse) ProtoMessage()

func (*FindValueNodesResponse) ProtoReflect

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

func (*FindValueNodesResponse) Reset

func (x *FindValueNodesResponse) Reset()

func (*FindValueNodesResponse) String

func (x *FindValueNodesResponse) String() string

type FindValueRequest

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

func (*FindValueRequest) Descriptor deprecated

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

Deprecated: Use FindValueRequest.ProtoReflect.Descriptor instead.

func (*FindValueRequest) GetKey

func (x *FindValueRequest) GetKey() string

func (*FindValueRequest) ProtoMessage

func (*FindValueRequest) ProtoMessage()

func (*FindValueRequest) ProtoReflect

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

func (*FindValueRequest) Reset

func (x *FindValueRequest) Reset()

func (*FindValueRequest) String

func (x *FindValueRequest) String() string

type FindValueResponse

type FindValueResponse struct {

	// Types that are assignable to Val:
	//	*FindValueResponse_ValueResponse
	//	*FindValueResponse_NodesResponse
	Val isFindValueResponse_Val `protobuf_oneof:"val"`
	// contains filtered or unexported fields
}

func (*FindValueResponse) Descriptor deprecated

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

Deprecated: Use FindValueResponse.ProtoReflect.Descriptor instead.

func (*FindValueResponse) GetNodesResponse

func (x *FindValueResponse) GetNodesResponse() *FindValueNodesResponse

func (*FindValueResponse) GetVal

func (m *FindValueResponse) GetVal() isFindValueResponse_Val

func (*FindValueResponse) GetValueResponse

func (x *FindValueResponse) GetValueResponse() *FindValueValueResponse

func (*FindValueResponse) ProtoMessage

func (*FindValueResponse) ProtoMessage()

func (*FindValueResponse) ProtoReflect

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

func (*FindValueResponse) Reset

func (x *FindValueResponse) Reset()

func (*FindValueResponse) String

func (x *FindValueResponse) String() string

type FindValueResponse_NodesResponse

type FindValueResponse_NodesResponse struct {
	NodesResponse *FindValueNodesResponse `protobuf:"bytes,2,opt,name=nodes_response,json=nodesResponse,proto3,oneof"`
}

type FindValueResponse_ValueResponse

type FindValueResponse_ValueResponse struct {
	ValueResponse *FindValueValueResponse `protobuf:"bytes,1,opt,name=value_response,json=valueResponse,proto3,oneof"`
}

type FindValueValueResponse

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

func (*FindValueValueResponse) Descriptor deprecated

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

Deprecated: Use FindValueValueResponse.ProtoReflect.Descriptor instead.

func (*FindValueValueResponse) GetValue

func (x *FindValueValueResponse) GetValue() []byte

func (*FindValueValueResponse) ProtoMessage

func (*FindValueValueResponse) ProtoMessage()

func (*FindValueValueResponse) ProtoReflect

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

func (*FindValueValueResponse) Reset

func (x *FindValueValueResponse) Reset()

func (*FindValueValueResponse) String

func (x *FindValueValueResponse) String() string

type NodeInfo

type NodeInfo struct {
	Id        []byte   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated

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

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetAddresses

func (x *NodeInfo) GetAddresses() []string

func (*NodeInfo) GetId

func (x *NodeInfo) GetId() []byte

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

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

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

type PingRequest

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

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

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

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type Request

type Request struct {
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Types that are assignable to Body:
	//	*Request_Ping
	//	*Request_FindNode
	//	*Request_Store
	//	*Request_FindValue
	Body isRequest_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (m *Request) GetBody() isRequest_Body

func (*Request) GetFindNode

func (x *Request) GetFindNode() *FindNodeRequest

func (*Request) GetFindValue

func (x *Request) GetFindValue() *FindValueRequest

func (*Request) GetHeader

func (x *Request) GetHeader() *RequestHeader

func (*Request) GetPing

func (x *Request) GetPing() *PingRequest

func (*Request) GetStore

func (x *Request) GetStore() *StoreRequest

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type RequestHeader

type RequestHeader struct {
	RequesterId             []byte   `protobuf:"bytes,1,opt,name=requester_id,json=requesterId,proto3" json:"requester_id,omitempty"`
	RequesterLocalAddresses []string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RequestHeader) Descriptor deprecated

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

Deprecated: Use RequestHeader.ProtoReflect.Descriptor instead.

func (*RequestHeader) GetRequesterId

func (x *RequestHeader) GetRequesterId() []byte

func (*RequestHeader) GetRequesterLocalAddresses

func (x *RequestHeader) GetRequesterLocalAddresses() []string

func (*RequestHeader) ProtoMessage

func (*RequestHeader) ProtoMessage()

func (*RequestHeader) ProtoReflect

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

func (*RequestHeader) Reset

func (x *RequestHeader) Reset()

func (*RequestHeader) String

func (x *RequestHeader) String() string

type Request_FindNode

type Request_FindNode struct {
	FindNode *FindNodeRequest `protobuf:"bytes,3,opt,name=find_node,json=findNode,proto3,oneof"`
}

type Request_FindValue

type Request_FindValue struct {
	FindValue *FindValueRequest `protobuf:"bytes,5,opt,name=find_value,json=findValue,proto3,oneof"`
}

type Request_Ping

type Request_Ping struct {
	Ping *PingRequest `protobuf:"bytes,2,opt,name=ping,proto3,oneof"`
}

type Request_Store

type Request_Store struct {
	Store *StoreRequest `protobuf:"bytes,4,opt,name=store,proto3,oneof"`
}

type Response

type Response struct {
	Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Types that are assignable to Body:
	//	*Response_Ping
	//	*Response_FindNode
	//	*Response_Store
	//	*Response_FindValue
	Body isResponse_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (m *Response) GetBody() isResponse_Body

func (*Response) GetFindNode

func (x *Response) GetFindNode() *FindNodeResponse

func (*Response) GetFindValue

func (x *Response) GetFindValue() *FindValueResponse

func (*Response) GetHeader

func (x *Response) GetHeader() *ResponseHeader

func (*Response) GetPing

func (x *Response) GetPing() *PingResponse

func (*Response) GetStore

func (x *Response) GetStore() *StoreResponse

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ResponseHeader

type ResponseHeader struct {
	ResponderId             []byte   `protobuf:"bytes,1,opt,name=responder_id,json=responderId,proto3" json:"responder_id,omitempty"`
	ResponderLocalAddresses []string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ResponseHeader) Descriptor deprecated

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

Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead.

func (*ResponseHeader) GetResponderId

func (x *ResponseHeader) GetResponderId() []byte

func (*ResponseHeader) GetResponderLocalAddresses

func (x *ResponseHeader) GetResponderLocalAddresses() []string

func (*ResponseHeader) ProtoMessage

func (*ResponseHeader) ProtoMessage()

func (*ResponseHeader) ProtoReflect

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

func (*ResponseHeader) Reset

func (x *ResponseHeader) Reset()

func (*ResponseHeader) String

func (x *ResponseHeader) String() string

type Response_FindNode

type Response_FindNode struct {
	FindNode *FindNodeResponse `protobuf:"bytes,3,opt,name=find_node,json=findNode,proto3,oneof"`
}

type Response_FindValue

type Response_FindValue struct {
	FindValue *FindValueResponse `protobuf:"bytes,5,opt,name=find_value,json=findValue,proto3,oneof"`
}

type Response_Ping

type Response_Ping struct {
	Ping *PingResponse `protobuf:"bytes,2,opt,name=ping,proto3,oneof"`
}

type Response_Store

type Response_Store struct {
	Store *StoreResponse `protobuf:"bytes,4,opt,name=store,proto3,oneof"`
}

type StoreRequest

type StoreRequest struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreRequest) Descriptor deprecated

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

Deprecated: Use StoreRequest.ProtoReflect.Descriptor instead.

func (*StoreRequest) GetKey

func (x *StoreRequest) GetKey() string

func (*StoreRequest) GetValue

func (x *StoreRequest) GetValue() []byte

func (*StoreRequest) ProtoMessage

func (*StoreRequest) ProtoMessage()

func (*StoreRequest) ProtoReflect

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

func (*StoreRequest) Reset

func (x *StoreRequest) Reset()

func (*StoreRequest) String

func (x *StoreRequest) String() string

type StoreResponse

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

func (*StoreResponse) Descriptor deprecated

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

Deprecated: Use StoreResponse.ProtoReflect.Descriptor instead.

func (*StoreResponse) ProtoMessage

func (*StoreResponse) ProtoMessage()

func (*StoreResponse) ProtoReflect

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

func (*StoreResponse) Reset

func (x *StoreResponse) Reset()

func (*StoreResponse) String

func (x *StoreResponse) String() string

Jump to

Keyboard shortcuts

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