pb

package
v0.0.0-...-da0de32 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

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

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetId

func (x *Event) GetId() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type TestListener

type TestListener interface {
	OnEvent(context.Context, *Event) (*Void, error)
}

type TestListenerAsync

type TestListenerAsync interface {
	OnEvent(context.Context, *Event) *mo.Future[*Void]
}

type TestListenerClient

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

func NewRSocketTestListenerClient

func NewRSocketTestListenerClient(selector uint64, rs rsocketgo.RSocket) *TestListenerClient

func NewTestListenerClient

func NewTestListenerClient(selector uint64, handler runtime.ClientRequestResponseHandler) *TestListenerClient

func (*TestListenerClient) OnEvent

func (c *TestListenerClient) OnEvent(ctx context.Context, req *Event) (*Void, error)

type TestListenerClientAsync

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

func NewRSocketTestListenerClientAsync

func NewRSocketTestListenerClientAsync(selector uint64, rs rsocketgo.RSocket) *TestListenerClientAsync

func (*TestListenerClientAsync) OnEvent

func (c *TestListenerClientAsync) OnEvent(ctx context.Context, req *Event) *mo.Future[*Void]

type TestListenerServer

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

func NewTestListenerServer

func NewTestListenerServer(selector uint64, service TestListener) *TestListenerServer

func (*TestListenerServer) HandleRequestResponse

func (s *TestListenerServer) HandleRequestResponse(ctx context.Context, reqWrapper *runtime.RequestWrapper) (proto.Message, error)

func (*TestListenerServer) Selector

func (s *TestListenerServer) Selector() uint64

type TestService

type TestService interface {
	Test(context.Context, *pb.TestRequest) (*pb1.TestResponse, error)
}

type TestService2

type TestService2 interface {
	Test(context.Context, *pb.TestRequest) (*pb1.TestResponse, error)
}

type TestService2Async

type TestService2Async interface {
	Test(context.Context, *pb.TestRequest) *mo.Future[*pb1.TestResponse]
}

type TestService2Client

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

func NewRSocketTestService2Client

func NewRSocketTestService2Client(selector uint64, rs rsocketgo.RSocket) *TestService2Client

func NewTestService2Client

func NewTestService2Client(selector uint64, handler runtime.ClientRequestResponseHandler) *TestService2Client

func (*TestService2Client) Test

type TestService2ClientAsync

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

func NewRSocketTestService2ClientAsync

func NewRSocketTestService2ClientAsync(selector uint64, rs rsocketgo.RSocket) *TestService2ClientAsync

func (*TestService2ClientAsync) Test

type TestService2Server

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

func NewTestService2Server

func NewTestService2Server(selector uint64, service TestService2) *TestService2Server

func (*TestService2Server) HandleRequestResponse

func (s *TestService2Server) HandleRequestResponse(ctx context.Context, reqWrapper *runtime.RequestWrapper) (proto.Message, error)

func (*TestService2Server) Selector

func (s *TestService2Server) Selector() uint64

type TestServiceAsync

type TestServiceAsync interface {
	Test(context.Context, *pb.TestRequest) *mo.Future[*pb1.TestResponse]
}

type TestServiceClient

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

func NewRSocketTestServiceClient

func NewRSocketTestServiceClient(selector uint64, rs rsocketgo.RSocket) *TestServiceClient

func NewTestServiceClient

func NewTestServiceClient(selector uint64, handler runtime.ClientRequestResponseHandler) *TestServiceClient

func (*TestServiceClient) Test

type TestServiceClientAsync

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

func NewRSocketTestServiceClientAsync

func NewRSocketTestServiceClientAsync(selector uint64, rs rsocketgo.RSocket) *TestServiceClientAsync

func (*TestServiceClientAsync) Test

type TestServiceServer

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

func NewTestServiceServer

func NewTestServiceServer(selector uint64, service TestService) *TestServiceServer

func (*TestServiceServer) HandleRequestResponse

func (s *TestServiceServer) HandleRequestResponse(ctx context.Context, reqWrapper *runtime.RequestWrapper) (proto.Message, error)

func (*TestServiceServer) Selector

func (s *TestServiceServer) Selector() uint64

type Void

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

func (*Void) Descriptor deprecated

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

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

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Directories

Path Synopsis
request
pb
response
pb

Jump to

Keyboard shortcuts

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