Documentation ¶
Index ¶
- type Cache
- type EntityCache
- type FeatureCache
- type GroupCache
- type Informer
- func (f *Informer) Cache() *Cache
- func (f *Informer) Close() error
- func (f *Informer) GetCachedGroup(ctx context.Context, groupID int) (*types.Group, error)
- func (f *Informer) ListCachedFeature(ctx context.Context, opt metadata.ListCachedFeatureOpt) types.FeatureList
- func (f *Informer) Refresh() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { Entities *EntityCache Features *FeatureCache Groups *GroupCache }
func NewCache ¶
func NewCache( entities types.EntityList, features types.FeatureList, groups types.GroupList) *Cache
type EntityCache ¶
type EntityCache struct {
types.EntityList
}
type FeatureCache ¶
type FeatureCache struct {
types.FeatureList
}
func (*FeatureCache) Enrich ¶
func (c *FeatureCache) Enrich(groupCache *GroupCache)
func (*FeatureCache) List ¶
func (c *FeatureCache) List(opt metadata.ListCachedFeatureOpt) types.FeatureList
type GroupCache ¶
func (*GroupCache) Enrich ¶
func (c *GroupCache) Enrich(entityCache *EntityCache)
type Informer ¶
type Informer struct {
// contains filtered or unexported fields
}
func (*Informer) GetCachedGroup ¶ added in v0.1.0
func (*Informer) ListCachedFeature ¶ added in v0.1.0
func (f *Informer) ListCachedFeature(ctx context.Context, opt metadata.ListCachedFeatureOpt) types.FeatureList
Click to show internal directories.
Click to hide internal directories.