mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
19a430b262
* Adds basic RPC supporting files * Adds interrupt handling and error chan * Add getblock RPC method * Update request structure * Update names of nodes * Allow bad addresses to be registered in discovery externally * Small tidy up * Few tweaks * Check if error is close error in tcp transport * Fix tests * Fix priv port * Small tweak to param name * Comment fix * Remove version from server * Moves submitblock to TODO block * Remove old field * Bumps version and fix hex issues
21 lines
317 B
Go
21 lines
317 B
Go
package rpc
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type (
|
|
// Param represent a param either passed to
|
|
// the server or to send to a server using
|
|
// the client.
|
|
Param struct {
|
|
StringVal string
|
|
IntVal int
|
|
Type string
|
|
RawValue interface{}
|
|
}
|
|
)
|
|
|
|
func (p Param) String() string {
|
|
return fmt.Sprintf("%v", p.RawValue)
|
|
}
|