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: 0

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