Documentation
¶
Index ¶
- type Cache
- type OAMCache
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
GetAsset(a oam.Asset) (*types.Asset, bool)
GetAssetsByType(t oam.AssetType) ([]*types.Asset, bool)
SetAsset(a *types.Asset)
GetRelations(r *types.Relation) ([]*types.Relation, bool)
GetRelationsByType(rtype string) ([]*types.Relation, bool)
SetRelation(r *types.Relation)
Close()
}
func NewOAMCache ¶
type OAMCache ¶
func (*OAMCache) GetAssetsByType ¶
func (*OAMCache) GetRelations ¶
func (*OAMCache) GetRelationsByType ¶
func (*OAMCache) SetRelation ¶
Click to show internal directories.
Click to hide internal directories.