multiple

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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_multiple1_proto protoreflect.FileDescriptor
View Source
var File_multiple2_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Msg1

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

func (*Msg1) Descriptor deprecated

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

Deprecated: Use Msg1.ProtoReflect.Descriptor instead.

func (*Msg1) ProtoMessage

func (*Msg1) ProtoMessage()

func (*Msg1) ProtoReflect

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

func (*Msg1) Reset

func (x *Msg1) Reset()

func (*Msg1) String

func (x *Msg1) String() string

type Msg2

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

func (*Msg2) Descriptor deprecated

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

Deprecated: Use Msg2.ProtoReflect.Descriptor instead.

func (*Msg2) ProtoMessage

func (*Msg2) ProtoMessage()

func (*Msg2) ProtoReflect

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

func (*Msg2) Reset

func (x *Msg2) Reset()

func (*Msg2) String

func (x *Msg2) String() string

type Svc1Client

type Svc1Client interface {
	Send(context.Context, *Msg1, ...psrpc.RequestOption) (*Msg1, error)
}

func NewSvc1Client

func NewSvc1Client(clientID string, bus psrpc.MessageBus, opts ...psrpc.ClientOption) (Svc1Client, error)

NewSvc1Client creates a psrpc client that implements the Svc1Client interface.

type Svc1Server

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

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

func NewSvc1Server

func NewSvc1Server(serverID string, svc Svc1ServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (Svc1Server, error)

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

type Svc1ServerImpl

type Svc1ServerImpl interface {
	Send(context.Context, *Msg1) (*Msg1, error)
}

type Svc2Client

type Svc2Client interface {
	Send(context.Context, *Msg2, ...psrpc.RequestOption) (*Msg2, error)

	SamePackageProtoImport(context.Context, *Msg1, ...psrpc.RequestOption) (*Msg1, error)
}

func NewSvc2Client

func NewSvc2Client(clientID string, bus psrpc.MessageBus, opts ...psrpc.ClientOption) (Svc2Client, error)

NewSvc2Client creates a psrpc client that implements the Svc2Client interface.

type Svc2Server

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

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

func NewSvc2Server

func NewSvc2Server(serverID string, svc Svc2ServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (Svc2Server, error)

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

type Svc2ServerImpl

type Svc2ServerImpl interface {
	Send(context.Context, *Msg2) (*Msg2, error)

	SamePackageProtoImport(context.Context, *Msg1) (*Msg1, error)
}

Jump to

Keyboard shortcuts

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