rpchub

package module
v0.0.0-...-00ec4ca Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToFloat

func BytesToFloat(bs []byte) float64

func BytesToInt

func BytesToInt(bs []byte) int64

func FloatToBytes

func FloatToBytes(v float64) []byte

func HubLog

func HubLog(p *Hub) *toolkit.LogEngine

func IntToBytes

func IntToBytes(v int64) []byte

Types

type Hub

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

func NewHub

func NewHub() *Hub

func RegisterToHub

func RegisterToHub(hub *Hub, objs ...interface{}) *Hub

func SetHubLog

func SetHubLog(r *Hub, l *toolkit.LogEngine) *Hub

func (*Hub) Call

func (r *Hub) Call(request Request, response *Response) error

type Request

type Request struct {
	Name string
	Parm []interface{}
}

func NewRequest

func NewRequest(name string, parms ...interface{}) Request

type Response

type Response struct {
	Data []byte
	// contains filtered or unexported fields
}

func NewResponseWithErr

func NewResponseWithErr(err string) *Response

func (*Response) Err

func (res *Response) Err() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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