healthcheck

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FMPScc HealthCheck
	FMPScc = "FMPScc"
	// ConfigurationScc Healthcheck
	ConfigurationScc = "ConfigurationScc"
	// TxDelegationScc Healthcheck
	TxDelegationScc = "TxDelegationScc"
)

Variables

This section is empty.

Functions

func SmokeTest

func SmokeTest(extScc string, stub shim.ChaincodeStubInterface, args [][]byte) pb.Response

SmokeTest is a health check function that returns the status of Snap it is called up

Types

type SmokeTestResult

type SmokeTestResult struct {
	Message string `json:"message,omitempty"`
	Status  int    `json:"status,omitempty"`
}

SmokeTestResult is a structure representing the results of a SmokeTest

func UnmarshalEchoResponse

func UnmarshalEchoResponse(objBytes []byte) (*SmokeTestResult, error)

UnmarshalEchoResponse will JSON Unmarshal an object of type []byte

Jump to

Keyboard shortcuts

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