test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_typed_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FunctionalTestActorTypedProvider

type FunctionalTestActorTypedProvider func() TestActorTypedInterface

func (FunctionalTestActorTypedProvider) Provide

type Request

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

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetMessage

func (x *Request) GetMessage() string

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 Response

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

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

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 TestActorTyped

type TestActorTyped interface {
	vivid.Actor
	TestActorTypedInterface
}

type TestActorTypedInterface

type TestActorTypedInterface interface {

	// Say 是一个 Tell 类型的方法,它将会非阻塞的将消息投递到目标邮箱。
	Say(ctx vivid.ActorContext, message *Request)

	// Call 是一个 Ask 类型的方法,它将会非阻塞的将消息投递到目标邮箱,但是不一定能收到返回的结果。
	Call(ctx vivid.ActorContext, message *Request, responder tm.AskResponder[*Response])

	// Ping 是一个 FutureAsk 类型的方法,它将会阻塞的将消息投递到目标邮箱,并且会等待返回结果。
	//  - 超时时间为 1000 毫秒
	Ping(ctx vivid.ActorContext, message *Request) (*Response, error)
}

type TestActorTypedProvider

type TestActorTypedProvider interface {
	vivid.ActorProvider
}

type TestActorTypedRef

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

func NewTestActorTyped

func NewTestActorTyped(ref vivid.ActorRef) *TestActorTypedRef

func (*TestActorTypedRef) Call

func (t *TestActorTypedRef) Call(sender vivid.ActorContext, message *Request)

func (*TestActorTypedRef) Ping

func (t *TestActorTypedRef) Ping(sender vivid.ActorContext, message *Request) (*Response, error)

func (*TestActorTypedRef) Say

func (t *TestActorTypedRef) Say(sender vivid.ActorContext, message *Request)

Jump to

Keyboard shortcuts

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