service_method_same_name

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_method_same_name_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EchoClient

type EchoClient interface {
	Echo(context.Context, *Msg, ...psrpc.RequestOption) (*Msg, error)
}

func NewEchoClient

func NewEchoClient(clientID string, bus psrpc.MessageBus, opts ...psrpc.ClientOption) (EchoClient, error)

NewEchoClient creates a psrpc client that implements the EchoClient interface.

type EchoServer

type EchoServer interface {
	// Close and wait for pending RPCs to complete
	Shutdown()

	// Close immediately, without waiting for pending RPCs
	Kill()
}

func NewEchoServer

func NewEchoServer(serverID string, svc EchoServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (EchoServer, error)

NewEchoServer builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.

type EchoServerImpl

type EchoServerImpl interface {
	Echo(context.Context, *Msg) (*Msg, error)
}

type Msg

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

func (*Msg) Descriptor deprecated

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect

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

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

Jump to

Keyboard shortcuts

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