Documentation ¶
Index ¶
- Variables
- func Generate(words []string) error
- func ParseStdlibPackage(ppath string) (*ast.Package, error)
- func WriteNewFile(filename string, writer func(*os.File) error) error
- type BenchmarkData
- type Block
- type BlockAndPvtData
- type BlockData
- type BlockHeader
- type BlockMetadata
- type CollectionPvtReadWriteSet
- type Envelope
- type Interval
- type LicenseContents
- type LicenseData
- type LicenseFile
- type MissingPvtData
- type NsPvtReadWriteSet
- type Score
- type StockData
- type TxMissingPvtData
- type TxPvtData
- type TxPvtDataMap
- type TxPvtReadWriteSet
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // To reconstruct licenses.gob, // cat licenses-gob-* > licenses.gob Licenses = licenseBenchmarkData("licenses") LicensesSmall = licenseBenchmarkData("licenses-small") )
View Source
var ASTData = gobBenchmarkData("ast", func() interface{} { return new(map[string]*ast.File) })
View Source
var Hyperledger = BenchmarkData{ "hyperledger", func() (interface{}, error) { return hlDecodeJSON("data/ledgerAPIs.json") }, func() interface{} { return new(submittedData) }, }
View Source
var Scores = gobBenchmarkData("scores", func() interface{} { return new([]Score) })
View Source
var Stocks = gobBenchmarkData("stocks", func() interface{} { return new([]*StockData) })
Functions ¶
func ParseStdlibPackage ¶
ParseStdlibPackage parses and returns the standard library package at ppath. It assumes the package name is the last component of the path.
Types ¶
type BenchmarkData ¶
type Block ¶
type Block struct { Header *BlockHeader Data *BlockData Metadata *BlockMetadata }
type BlockAndPvtData ¶
type BlockAndPvtData struct { Block *Block PvtData TxPvtDataMap MissingPvtData TxMissingPvtData }
type BlockHeader ¶
type BlockMetadata ¶
type BlockMetadata struct {
Metadata [][]byte
}
type LicenseContents ¶
type LicenseContents struct { Contents []byte ContentsHash [sha256.Size]byte // SHA256 of the contents, to dedup equal contents OldTypes []string // from the DB, stored in the gob file OldCoverage licensecheck.Coverage // ditto NewTypes []string // not populated from the gob NewCoverage licensecheck.Coverage // ditto }
LicenseContents hold the contents of a license file, and information derived from it.
func (*LicenseContents) Equal ¶
func (c1 *LicenseContents) Equal(c2 *LicenseContents) bool
type LicenseData ¶
type LicenseData struct { Files []*LicenseFile Contents []*LicenseContents }
type LicenseFile ¶
type LicenseFile struct { Module string Version string FilePath string Contents int // index into LicenseData.Contents; not a pointer because gob does not dedup }
LicenseFile holds information about a license file.
func (*LicenseFile) Equal ¶
func (f1 *LicenseFile) Equal(f2 *LicenseFile) bool
type MissingPvtData ¶
type NsPvtReadWriteSet ¶
type NsPvtReadWriteSet struct { Namespace string CollectionPvtRwset []*CollectionPvtReadWriteSet }
type TxMissingPvtData ¶
type TxMissingPvtData map[uint64][]*MissingPvtData
type TxPvtData ¶
type TxPvtData struct { SeqInBlock uint64 WriteSet *TxPvtReadWriteSet }
type TxPvtDataMap ¶
type TxPvtReadWriteSet ¶
type TxPvtReadWriteSet struct { DataModel int32 NsPvtRwset []*NsPvtReadWriteSet }
Click to show internal directories.
Click to hide internal directories.