indexedData

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexedData

type IndexedData struct {
	IndexedData applicatonMap
	// contains filtered or unexported fields
}

IndexedData Index of the application id -> user id -> computer type -> computer id(set) tag[term][struct]

func NewIndexedData

func NewIndexedData(applicationId []uint64) *IndexedData

NewIndexedData Creates a new index data structure

func (*IndexedData) AddItem

func (indexedData *IndexedData) AddItem(inv *inventory.Inventory)

AddItem Index and add the new item to the list

func (*IndexedData) ComputeLicence

func (indexedData *IndexedData) ComputeLicence(applicationId uint64) (value uint64)

ComputeLicence Find total number of licence required for the application id from the indexed data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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