google_protobuf_imports

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: Apache-2.0 Imports: 7 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 SvcClient

func NewSvcClient

func NewSvcClient(clientID string, bus psrpc.MessageBus, opts ...psrpc.ClientOption) (SvcClient, error)

NewSvcClient creates a psrpc client that implements the SvcClient interface.

type SvcServer

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

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

func NewSvcServer

func NewSvcServer(serverID string, svc SvcServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (SvcServer, error)

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

type SvcServerImpl

type SvcServerImpl interface {
	Send(context.Context, *google_protobuf1.StringValue) (*google_protobuf.Empty, error)
}

Jump to

Keyboard shortcuts

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