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: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址