kvexecutor

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 6 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVData

type KVData struct {
	Collection string `json:"collection"` // optional
	Key        string `json:"key"`        // required
	Value      string `json:"value"`      // required for read, ignored for write
}

KVData contains the data to read/write a key. Key is required. Value is required for write and ignored for read. When Collection is empty string "", it will read/write state data. When Collection is not empty string "", it will read/write private data in the collection.

type KVExcutor

type KVExcutor struct {
}

KVExcutor is a chaincode implementation that takes a KVData array as read parameter and a a KVData array as write parameter, and then calls GetXXX/PutXXX methods to read and write state/collection data. Both input params should be marshalled json data and then base64 encoded.

func (*KVExcutor) Init

Init initializes chaincode ===========================

func (*KVExcutor) Invoke

Invoke - Our entry point for Invocations ========================================

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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