common

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

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

View Source
const QSCResultMapperName = "qstarsResult"

Variables

This section is empty.

Functions

This section is empty.

Types

type KvMapper

type KvMapper struct {
	*mapper.BaseMapper
}

func NewKvMapper

func NewKvMapper(kvMapperName string) *KvMapper

func (*KvMapper) Copy

func (mapper *KvMapper) Copy() mapper.IMapper

func (*KvMapper) GetKey

func (mapper *KvMapper) GetKey(key string) (v string)

func (*KvMapper) SaveKV

func (mapper *KvMapper) SaveKV(key string, value string)

type Result

type Result struct {
	Code   string          `json:"code"`
	Height int64           `json:"height"`
	Hash   string          `json:"hash,omitempty"`
	Reason string          `json:"reason,omitempty"`
	Result json.RawMessage `json:"result,omitempty"`
}

func InternalError

func InternalError(reason string) Result

func NewErrorResult

func NewErrorResult(code, reason string) Result

func NewSuccessResult

func NewSuccessResult(cdc *wire.Codec, height int64, hash, res interface{}) Result

func ResultQOSTimeoutError

func ResultQOSTimeoutError() Result

ResultQOSTimeoutError 主链超时

func ResultQstarsTimeoutError

func ResultQstarsTimeoutError() Result

ResultQstarsTimeoutError 联盟链超时

func (Result) Marshal

func (r Result) Marshal() string

Jump to

Keyboard shortcuts

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