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) GetEntity(ctx context.Context, id int) (*types.Entity, error)
- func (f *Informer) GetEntityByName(ctx context.Context, name string) (*types.Entity, error)
- func (f *Informer) GetFeature(ctx context.Context, id int) (*types.Feature, error)
- func (f *Informer) GetFeatureByName(ctx context.Context, name string) (*types.Feature, error)
- func (f *Informer) GetFeatureGroup(ctx context.Context, id int) (*types.FeatureGroup, error)
- func (f *Informer) GetFeatureGroupByName(ctx context.Context, name string) (*types.FeatureGroup, error)
- func (f *Informer) GetRevision(ctx context.Context, id int) (*types.Revision, error)
- func (f *Informer) GetRevisionBy(ctx context.Context, groupID int, revision int64) (*types.Revision, error)
- func (f *Informer) ListEntity(ctx context.Context) types.EntityList
- func (f *Informer) ListFeature(ctx context.Context, opt metadata.ListFeatureOpt) types.FeatureList
- func (f *Informer) ListFeatureGroup(ctx context.Context, entityID *int) types.FeatureGroupList
- func (f *Informer) ListRevision(ctx context.Context, opt metadata.ListRevisionOpt) types.RevisionList
- func (f *Informer) Refresh() error
- type RevisionCache
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
Revisions *RevisionCache
}
func NewCache ¶
func NewCache( entities types.EntityList, features types.FeatureList, groups types.FeatureGroupList, revisions types.RevisionList) *Cache
type EntityCache ¶
type EntityCache struct {
types.EntityList
}
func (*EntityCache) List ¶
func (c *EntityCache) List() 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.ListFeatureOpt) types.FeatureList
type GroupCache ¶
type GroupCache struct {
types.FeatureGroupList
}
func (*GroupCache) Enrich ¶
func (c *GroupCache) Enrich(entityCache *EntityCache)
func (*GroupCache) List ¶
func (c *GroupCache) List(entityID *int) types.FeatureGroupList
type Informer ¶
type Informer struct {
// contains filtered or unexported fields
}
func (*Informer) GetEntityByName ¶
func (*Informer) GetFeature ¶
func (*Informer) GetFeatureByName ¶
func (*Informer) GetFeatureGroup ¶
func (*Informer) GetFeatureGroupByName ¶
func (*Informer) GetRevision ¶
func (*Informer) GetRevisionBy ¶
func (*Informer) ListEntity ¶
func (f *Informer) ListEntity(ctx context.Context) types.EntityList
List
func (*Informer) ListFeature ¶
func (f *Informer) ListFeature(ctx context.Context, opt metadata.ListFeatureOpt) types.FeatureList
func (*Informer) ListFeatureGroup ¶
func (*Informer) ListRevision ¶
func (f *Informer) ListRevision(ctx context.Context, opt metadata.ListRevisionOpt) types.RevisionList
type RevisionCache ¶
type RevisionCache struct {
types.RevisionList
}
func (*RevisionCache) Enrich ¶
func (c *RevisionCache) Enrich(groupCache *GroupCache)
func (*RevisionCache) List ¶
func (c *RevisionCache) List(opt metadata.ListRevisionOpt) types.RevisionList
Click to show internal directories.
Click to hide internal directories.