server

package
v0.0.0-...-1847b9f Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCServer

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

RPCServer ...

func NewServer

func NewServer(addr string) *RPCServer

NewServer creates a new server

func (*RPCServer) Execute

func (s *RPCServer) Execute(req dataserial.RPCdata) dataserial.RPCdata

Execute the given function if present

func (*RPCServer) Register

func (s *RPCServer) Register(fnName string, fFunc interface{})

Register the name of the function and its entries

func (*RPCServer) Run

func (s *RPCServer) Run()

Run server

Jump to

Keyboard shortcuts

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