messenger

package
v1.23.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageType_name = map[int32]string{
		0:  "MESSAGE_TYPE_UNSPECIFIED",
		1:  "MESSAGE_TYPE_PENDING_TXS",
		2:  "MESSAGE_TYPE_PUT_BLOCK",
		3:  "MESSAGE_TYPE_GET_BLOCK",
		4:  "MESSAGE_TYPE_GET_ACCEPTED",
		5:  "MESSAGE_TYPE_ACCEPTED",
		6:  "MESSAGE_TYPE_GET_ANCESTORS",
		7:  "MESSAGE_TYPE_MULTI_PUT",
		8:  "MESSAGE_TYPE_GET_FAILED",
		9:  "MESSAGE_TYPE_QUERY_FAILED",
		10: "MESSAGE_TYPE_CHITS",
	}
	MessageType_value = map[string]int32{
		"MESSAGE_TYPE_UNSPECIFIED":   0,
		"MESSAGE_TYPE_PENDING_TXS":   1,
		"MESSAGE_TYPE_PUT_BLOCK":     2,
		"MESSAGE_TYPE_GET_BLOCK":     3,
		"MESSAGE_TYPE_GET_ACCEPTED":  4,
		"MESSAGE_TYPE_ACCEPTED":      5,
		"MESSAGE_TYPE_GET_ANCESTORS": 6,
		"MESSAGE_TYPE_MULTI_PUT":     7,
		"MESSAGE_TYPE_GET_FAILED":    8,
		"MESSAGE_TYPE_QUERY_FAILED":  9,
		"MESSAGE_TYPE_CHITS":         10,
	}
)

Enum value maps for MessageType.

View Source
var File_proto_messenger_messenger_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

type Message struct {
	Type    MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=messenger.MessageType" json:"type,omitempty"`
	NodeId  []byte      `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Content []byte      `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetContent

func (x *Message) GetContent() []byte

func (*Message) GetNodeId

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

func (*Message) GetType

func (x *Message) GetType() MessageType

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type MessageType

type MessageType int32
const (
	MessageType_MESSAGE_TYPE_UNSPECIFIED   MessageType = 0
	MessageType_MESSAGE_TYPE_PENDING_TXS   MessageType = 1
	MessageType_MESSAGE_TYPE_PUT_BLOCK     MessageType = 2
	MessageType_MESSAGE_TYPE_GET_BLOCK     MessageType = 3
	MessageType_MESSAGE_TYPE_GET_ACCEPTED  MessageType = 4
	MessageType_MESSAGE_TYPE_ACCEPTED      MessageType = 5
	MessageType_MESSAGE_TYPE_GET_ANCESTORS MessageType = 6
	MessageType_MESSAGE_TYPE_MULTI_PUT     MessageType = 7
	MessageType_MESSAGE_TYPE_GET_FAILED    MessageType = 8
	MessageType_MESSAGE_TYPE_QUERY_FAILED  MessageType = 9
	MessageType_MESSAGE_TYPE_CHITS         MessageType = 10
)

func (MessageType) Descriptor

func (MessageType) Enum

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor deprecated

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

Deprecated: Use MessageType.Descriptor instead.

func (MessageType) Number

func (x MessageType) Number() protoreflect.EnumNumber

func (MessageType) String

func (x MessageType) String() string

func (MessageType) Type

type NotifyRequest

type NotifyRequest struct {
	Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyRequest) Descriptor deprecated

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

Deprecated: Use NotifyRequest.ProtoReflect.Descriptor instead.

func (*NotifyRequest) GetMessage

func (x *NotifyRequest) GetMessage() *Message

func (*NotifyRequest) ProtoMessage

func (*NotifyRequest) ProtoMessage()

func (*NotifyRequest) ProtoReflect

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

func (*NotifyRequest) Reset

func (x *NotifyRequest) Reset()

func (*NotifyRequest) String

func (x *NotifyRequest) String() string

type NotifyResponse

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

func (*NotifyResponse) Descriptor deprecated

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

Deprecated: Use NotifyResponse.ProtoReflect.Descriptor instead.

func (*NotifyResponse) ProtoMessage

func (*NotifyResponse) ProtoMessage()

func (*NotifyResponse) ProtoReflect

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

func (*NotifyResponse) Reset

func (x *NotifyResponse) Reset()

func (*NotifyResponse) String

func (x *NotifyResponse) String() string

Jump to

Keyboard shortcuts

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