vendorlist

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseEagerly

func ParseEagerly(data []byte) (api.VendorList, error)

ParseEagerly interprets and validates the Vendor List data up front, before returning it. The returned object can be shared safely between goroutines.

This is ideal if:

  1. You plan to call functions on the returned VendorList many times before discarding it.
  2. You need strong input validation and good error messages.

Otherwise, you may get better performance with ParseLazily.

func ParseLazily

func ParseLazily(data []byte) api.VendorList

ParseLazily returns a view of the data which re-calculates things on each function call. The returned object can be shared safely between goroutines.

This is ideal if:

  1. You only need to look up a few vendors or purpose IDs
  2. You don't need good errors on malformed input

Otherwise, you may get better performance with ParseEagerly.

Types

type Vendor

type Vendor interface {
	api.Vendor
}

type VendorList

type VendorList interface {
	api.VendorList
}

Jump to

Keyboard shortcuts

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