idlrpc

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCreator added in v0.3.0

func AddCreator(uuid uint64, pc proxy.ProxyCreator) error

func AddProxy added in v0.3.0

func AddProxy(proxy proxy.Proxy) error

AddProxy add remote service proxy to framework

func Call

func Call(proxyId proxy.ProxyId, methodId, timeout uint32, retry int32, message proto.Message) (resp *protocol.ResponsePackage, err error)

Call service proxy call remote sync

func GetProxyFromPeer added in v0.3.0

func GetProxyFromPeer(sCall *stub.StubCall) proxy.Proxy

func GetProxyManager added in v0.3.0

func GetProxyManager() *proxy.ProxyManager

func GetStubManager added in v0.3.0

func GetStubManager() *stub.StubManager

func OnMessage

func OnMessage(trans transport.Transport, ctx context.Context)

OnMessage try to create one rpc message

func RegisterService

func RegisterService(service stub.Stub) error

RegisterService register user impl service struct to framework

func Start

func Start()

Start start rpc framework

func Tick

func Tick()

Tick tick rpc frame work

Types

This section is empty.

Directories

Path Synopsis
goidltool module
idl2go module

Jump to

Keyboard shortcuts

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