Documentation ¶
Index ¶
- Constants
- Variables
- func Block(height int64) []byte
- func BlockResult(height int64) []byte
- func GetObjectsShardNumberByBucketName(bucketName string) uint32
- func GetObjectsTableName(bucketName string) string
- func GetObjectsTableNameByShardNumber(shard int) string
- func GetStatus() []byte
- func MockChainRPCServer()
- func Verify() error
- type ChainCase
- type RPCRequest
- type RPCResponse
Constants ¶
View Source
const ObjectTableName = "objects"
View Source
const ObjectsNumberOfShards = 64
Variables ¶
View Source
var ( StatusRes string MockBLockRes []string MockBLockResultRes []string )
View Source
var LatestHeight int
Functions ¶
func BlockResult ¶
func GetObjectsTableName ¶
func MockChainRPCServer ¶
func MockChainRPCServer()
Types ¶
type RPCRequest ¶
type RPCRequest struct { JSONRPC string `json:"jsonrpc"` Method string `json:"method"` Id int `json:"id"` Params json.RawMessage `json:"params"` // must be map[string]interface{} or []interface{} }
type RPCResponse ¶
type RPCResponse struct { JSONRPC string `json:"jsonrpc"` Id int `json:"id"` Result json.RawMessage `json:"result"` // must be map[string]interface{} or []interface{} }
Click to show internal directories.
Click to hide internal directories.