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
Click to show internal directories.
Click to hide internal directories.