messagesv1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_messages_v1_address_proto protoreflect.FileDescriptor
View Source
var File_messages_v1_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Address

type Address struct {

	// Specifies the remote host address
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Specifies the remote port
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// Specifies the actor name
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Specifies the actor unique id on the remote host
	Id string `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Address represents an actor address

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetHost

func (x *Address) GetHost() string

func (*Address) GetId

func (x *Address) GetId() string

func (*Address) GetName

func (x *Address) GetName() string

func (*Address) GetPort

func (x *Address) GetPort() int32

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type RemoteMessage

type RemoteMessage struct {

	// Specifies the sender' address
	Sender *Address `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Specifies the actor address
	Receiver *Address `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// Specifies the message to send to the actor
	// Any proto message is allowed to be sent
	Message *anypb.Any `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

RemoteMessage will be used by Actors to communicate remotely

func (*RemoteMessage) Descriptor deprecated

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

Deprecated: Use RemoteMessage.ProtoReflect.Descriptor instead.

func (*RemoteMessage) GetMessage

func (x *RemoteMessage) GetMessage() *anypb.Any

func (*RemoteMessage) GetReceiver

func (x *RemoteMessage) GetReceiver() *Address

func (*RemoteMessage) GetSender

func (x *RemoteMessage) GetSender() *Address

func (*RemoteMessage) ProtoMessage

func (*RemoteMessage) ProtoMessage()

func (*RemoteMessage) ProtoReflect

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

func (*RemoteMessage) Reset

func (x *RemoteMessage) Reset()

func (*RemoteMessage) String

func (x *RemoteMessage) String() string

Jump to

Keyboard shortcuts

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