rpc

package
v0.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: GPL-3.0 Imports: 24 Imported by: 0

README

RPC

This package contains the RPC APIs. The RPC APIs are responsible for the majority of the server-side logic and are invoked either locally by the server console or remotely via a client binary connected via the trasport package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRPCHandlers

func GetRPCHandlers() *map[uint32]RPCHandler

GetRPCHandlers - Returns a map of server-side msg handlers

func GetTunnelHandlers

func GetTunnelHandlers() *map[uint32]TunnelHandler

GetTunnelHandlers - Returns a map of tunnel handlers

Types

type RPCHandler

type RPCHandler func([]byte, time.Duration, RPCResponse)

RPCHandler - RPC handlers accept bytes and return bytes

type RPCResponse

type RPCResponse func([]byte, error)

RPCResponse - Called with response data, mapped back to reqID

type TunnelHandler

type TunnelHandler func(*core.Client, []byte, RPCResponse)

Jump to

Keyboard shortcuts

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