Versions in this module Expand all Collapse all v0 v0.0.2 Sep 14, 2024 v0.0.1 Sep 7, 2024 Changes in this version + type Cache interface + Close func() + GetAsset func(a oam.Asset) (*types.Asset, bool) + GetAssetsByType func(t oam.AssetType) ([]*types.Asset, bool) + GetRelations func(r *types.Relation) ([]*types.Relation, bool) + GetRelationsByType func(rtype string) ([]*types.Relation, bool) + SetAsset func(a *types.Asset) + SetRelation func(r *types.Relation) + func NewOAMCache(c Cache) Cache + type OAMCache struct + func (c *OAMCache) Close() + func (c *OAMCache) GetAsset(a oam.Asset) (*types.Asset, bool) + func (c *OAMCache) GetAssetsByType(t oam.AssetType) ([]*types.Asset, bool) + func (c *OAMCache) GetRelations(r *types.Relation) ([]*types.Relation, bool) + func (c *OAMCache) GetRelationsByType(rtype string) ([]*types.Relation, bool) + func (c *OAMCache) SetAsset(a *types.Asset) + func (c *OAMCache) SetRelation(r *types.Relation)