Back to godoc.org

Package streamer

v1.0.0-alpha3.0...-37c1b5a
Latest Go to latest

The highest tagged major version is .

Published: Jun 5, 2018 | License: Apache-2.0 | Module: bitbucket.org/acaisoft/fabric-sdk-go

Index

func StreamJSON

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

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

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

SearchElement defines the JSON arrays for which to search

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier