rpc

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRpcCallNotFound = errors.New("rpc call not found")
)

Functions

This section is empty.

Types

type MemoryAdapter

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

func NewMemory

func NewMemory() *MemoryAdapter

func (*MemoryAdapter) Reply

func (m *MemoryAdapter) Reply(ctx context.Context, topic string, fn func(ctx context.Context, in json.RawMessage) (out any, err error)) error

func (*MemoryAdapter) Request

func (m *MemoryAdapter) Request(ctx context.Context, topic string, in any) (json.RawMessage, error)

type RpcGreetingServiceImpl

type RpcGreetingServiceImpl struct {
}

func (*RpcGreetingServiceImpl) SayHello

func (s *RpcGreetingServiceImpl) SayHello(ctx context.Context, name string) (string, error)

Jump to

Keyboard shortcuts

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