expect

package
v0.0.0-...-8fe6f98 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventPayloadIs

func EventPayloadIs(event *peer.ChaincodeEvent, target interface{}) interface{}

func PayloadIs

func PayloadIs(response peer.Response, target interface{}) interface{}

PayloadIs expects peer.Response payload can be marshalled to target interface{} and returns converted value

func ResponseError

func ResponseError(response peer.Response, errorSubstr ...interface{})

ResponseError expects peer.Response has shim.ERROR status and message has errorSubstr prefix

func ResponseOk

func ResponseOk(response peer.Response, okSubstr ...string)

ResponseOk expects peer.Response has shim.OK status and message has okSubstr prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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