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) GetGroup(ctx context.Context, id int) (*types.Group, error)
- func (f *Informer) GetGroupByName(ctx context.Context, name string) (*types.Group, 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) ListGroup(ctx context.Context, entityID *int) types.GroupList
- func (f *Informer) ListRevision(ctx context.Context, groupID *int) 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.GroupList, 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 ¶
func (*GroupCache) Enrich ¶
func (c *GroupCache) Enrich(entityCache *EntityCache)
type Informer ¶
type Informer struct {
// contains filtered or unexported fields
}
func (*Informer) GetEntityByName ¶
func (*Informer) GetFeature ¶
func (*Informer) GetFeatureByName ¶
func (*Informer) GetGroupByName ¶ added in v0.0.3
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) ListRevision ¶
type RevisionCache ¶
type RevisionCache struct {
types.RevisionList
}
func (*RevisionCache) Enrich ¶
func (c *RevisionCache) Enrich(groupCache *GroupCache)
func (*RevisionCache) List ¶
func (c *RevisionCache) List(groupID *int) types.RevisionList
Click to show internal directories.
Click to hide internal directories.