pvtdatahandler

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles the retrieval of kevlar-defined collection types

func New

func New(channelID string, collDataProvider storeapi.Provider) *Handler

New returns a new Handler

func (*Handler) HandleExecuteQueryOnPrivateData

func (h *Handler) HandleExecuteQueryOnPrivateData(txID, ns string, config *pb.StaticCollectionConfig, query string) (commonledger.ResultsIterator, bool, error)

HandleExecuteQueryOnPrivateData executes the given query on the collection if the collection is one of the extended collections

func (*Handler) HandleGetPrivateData

func (h *Handler) HandleGetPrivateData(txID, ns string, config *pb.StaticCollectionConfig, key string) ([]byte, bool, error)

HandleGetPrivateData if the collection is one of the custom Kevlar collections then the private data is returned

func (*Handler) HandleGetPrivateDataMultipleKeys

func (h *Handler) HandleGetPrivateDataMultipleKeys(txID, ns string, config *pb.StaticCollectionConfig, keys []string) ([][]byte, bool, error)

HandleGetPrivateDataMultipleKeys if the collection is one of the custom Kevlar collections then the private data is returned

Jump to

Keyboard shortcuts

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