Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailboxCentral ¶
type MailboxCentral struct {
// contains filtered or unexported fields
}
func (*MailboxCentral) Close ¶
func (rmc *MailboxCentral) Close()
func (*MailboxCentral) GetOrCreate ¶
func (rmc *MailboxCentral) GetOrCreate(advertiseAddr string, envelopHandler NetworkEnvelopHandler) *Mailbox
type NetworkEnvelopHandler ¶
type ServerActor ¶
type ServerActor struct {
// contains filtered or unexported fields
}
ServerActor 管理TCP服务器
func NewServerActor ¶
func NewServerActor(ctx context.Context, bindAddr string, advertiseAddr string, codec vivid.Codec, envelopHandler NetworkEnvelopHandler, options vivid.ActorSystemRemotingOptions) *ServerActor
NewServerActor 创建新的服务器
func (*ServerActor) GetRemotingMailboxCentral ¶
func (s *ServerActor) GetRemotingMailboxCentral() *MailboxCentral
func (*ServerActor) OnReceive ¶
func (s *ServerActor) OnReceive(ctx vivid.ActorContext)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.