fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/lib/streamer Index | Files

package streamer

import "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric-ca/lib/streamer"

Index

Package Files

jsonstreamer.go

func StreamJSON Uses

func StreamJSON(decoder *json.Decoder, search []SearchElement) (bool, error)

StreamJSON searches the JSON stream for arrays matching a search element. For each array that it finds, it streams them one element at a time.

func StreamJSONArray Uses

func StreamJSONArray(decoder *json.Decoder, path string, cb func(*json.Decoder) error) (bool, error)

StreamJSONArray searches the JSON stream for an array matching 'path'. For each element of this array, it streams one element at a time.

type SearchElement Uses

type SearchElement struct {
    Path string
    CB   func(*json.Decoder) error
}

SearchElement defines the JSON arrays for which to search

Package streamer imports 8 packages (graph) and is imported by 1 packages. Updated 2018-07-24. Refresh now. Tools for package owners.