Documentation ¶
Index ¶
- Variables
- func Init()
- func LoopInit()
- type SafeAvatarsMap
- func (c *SafeAvatarsMap) All() []*models.Avatar
- func (c *SafeAvatarsMap) Any(f func(*models.Avatar) bool) *models.Avatar
- func (c *SafeAvatarsMap) Count() int
- func (c *SafeAvatarsMap) Filter(f func(*models.Avatar) bool) (L []*models.Avatar)
- func (c *SafeAvatarsMap) Include(f func(*models.Avatar) bool) bool
- func (c *SafeAvatarsMap) Init()
- func (c *SafeAvatarsMap) Map(f func(*models.Avatar) *models.Avatar) []*models.Avatar
- type SafeClustersMap
- func (c *SafeClustersMap) All() []*models.Cluster
- func (c *SafeClustersMap) Any(f func(*models.Cluster) bool) *models.Cluster
- func (c *SafeClustersMap) Append(item *models.Cluster)
- func (c *SafeClustersMap) Count() int
- func (c *SafeClustersMap) Filter(f func(*models.Cluster) bool) (L []*models.Cluster)
- func (c *SafeClustersMap) GetPage(offset, limit int) (clusters []*models.Cluster)
- func (c *SafeClustersMap) Include(f func(*models.Cluster) bool) bool
- func (c *SafeClustersMap) Init()
- func (c *SafeClustersMap) Map(f func(*models.Cluster) *models.Cluster) []*models.Cluster
- func (c *SafeClustersMap) Remove(f func(*models.Cluster) bool)
- type SafeEdgesMap
- func (c *SafeEdgesMap) All() []*models.Edge
- func (c *SafeEdgesMap) Any(f func(*models.Edge) bool) *models.Edge
- func (c *SafeEdgesMap) Count() int
- func (c *SafeEdgesMap) Filter(f func(*models.Edge) bool) (L []*models.Edge)
- func (c *SafeEdgesMap) Include(f func(*models.Edge) bool) bool
- func (c *SafeEdgesMap) Init()
- func (c *SafeEdgesMap) Map(f func(*models.Edge) *models.Edge) []*models.Edge
- func (c *SafeEdgesMap) Reload()
- type SafeGlossariesMap
- func (c *SafeGlossariesMap) All() []*models.Glossary
- func (c *SafeGlossariesMap) Any(f func(*models.Glossary) bool) *models.Glossary
- func (c *SafeGlossariesMap) Count() int
- func (c *SafeGlossariesMap) Filter(f func(*models.Glossary) bool) (L []*models.Glossary)
- func (c *SafeGlossariesMap) Include(f func(*models.Glossary) bool) bool
- func (c *SafeGlossariesMap) Init()
- func (c *SafeGlossariesMap) Map(f func(*models.Glossary) *models.Glossary) []*models.Glossary
- type SafeOptionsMap
- func (c *SafeOptionsMap) All() []*models.Option
- func (c *SafeOptionsMap) Any(f func(*models.Option) bool) *models.Option
- func (c *SafeOptionsMap) Count() int
- func (c *SafeOptionsMap) Filter(f func(*models.Option) bool) (L []*models.Option)
- func (c *SafeOptionsMap) Include(f func(*models.Option) bool) bool
- func (c *SafeOptionsMap) Init()
- func (c *SafeOptionsMap) Map(f func(*models.Option) *models.Option) []*models.Option
- type SafeRolesMap
- func (c *SafeRolesMap) All() []*models.Role
- func (c *SafeRolesMap) Any(f func(*models.Role) bool) *models.Role
- func (c *SafeRolesMap) Count() int
- func (c *SafeRolesMap) Filter(f func(*models.Role) bool) (L []*models.Role)
- func (c *SafeRolesMap) Include(f func(*models.Role) bool) bool
- func (c *SafeRolesMap) Init()
- func (c *SafeRolesMap) Map(f func(*models.Role) *models.Role) []*models.Role
- type SafeRulesMap
- func (c *SafeRulesMap) All() []*models.Rule
- func (c *SafeRulesMap) Any(f func(*models.Rule) bool) *models.Rule
- func (c *SafeRulesMap) Count() int
- func (c *SafeRulesMap) Filter(f func(*models.Rule) bool) (L []*models.Rule)
- func (c *SafeRulesMap) Include(f func(*models.Rule) bool) bool
- func (c *SafeRulesMap) Init()
- func (c *SafeRulesMap) Map(f func(*models.Rule) *models.Rule) []*models.Rule
- type SafeStatisticsMap
- func (c *SafeStatisticsMap) All() []*models.Statistic
- func (c *SafeStatisticsMap) Any(f func(*models.Statistic) bool) *models.Statistic
- func (c *SafeStatisticsMap) Count() int
- func (c *SafeStatisticsMap) Filter(f func(*models.Statistic) bool) (L []*models.Statistic)
- func (c *SafeStatisticsMap) Include(f func(*models.Statistic) bool) bool
- func (c *SafeStatisticsMap) Init()
- func (c *SafeStatisticsMap) Map(f func(*models.Statistic) *models.Statistic) []*models.Statistic
- type SafeTemplatesMap
- func (c *SafeTemplatesMap) All() []*models.Template
- func (c *SafeTemplatesMap) Any(f func(*models.Template) bool) *models.Template
- func (c *SafeTemplatesMap) Count() int
- func (c *SafeTemplatesMap) Filter(f func(*models.Template) bool) (L []*models.Template)
- func (c *SafeTemplatesMap) Include(f func(*models.Template) bool) bool
- func (c *SafeTemplatesMap) Init()
- func (c *SafeTemplatesMap) Map(f func(*models.Template) *models.Template) []*models.Template
- type SafeUsersMap
- func (c *SafeUsersMap) All() []*models.User
- func (c *SafeUsersMap) Any(f func(*models.User) bool) *models.User
- func (c *SafeUsersMap) Append(item *models.User)
- func (c *SafeUsersMap) Count() int
- func (c *SafeUsersMap) Filter(f func(*models.User) bool) (L []*models.User)
- func (c *SafeUsersMap) GetPage(offset, limit int) (users []*models.User)
- func (c *SafeUsersMap) Include(f func(*models.User) bool) bool
- func (c *SafeUsersMap) Init()
- func (c *SafeUsersMap) Lookup(UUID string) *models.User
- func (c *SafeUsersMap) Map(f func(*models.User) *models.User) []*models.User
Constants ¶
This section is empty.
Variables ¶
var AvatarsMap = &SafeAvatarsMap{}
AvatarsMap 头像缓存对象
var ClustersMap = &SafeClustersMap{}
ClustersMap 群集缓存对象
var EdgesMap = &SafeEdgesMap{}
EdgesMap 关联缓存对象
var GlossariesMap = &SafeGlossariesMap{}
GlossariesMap 字典缓存对象
var OptionsMap = &SafeOptionsMap{}
OptionsMap 系统配置缓存对象
var RolesMap = &SafeRolesMap{M: make(map[string]*models.Role)}
RolesMap 角色缓存对象
var RulesMap = &SafeRulesMap{}
RulesMap 规则缓存对象
var StatisticsMap = &SafeStatisticsMap{}
StatisticsMap 规则缓存对象
var TemplatesMap = &SafeTemplatesMap{}
TemplatesMap 规则缓存对象
var UsersMap = &SafeUsersMap{}
UsersMap 用户缓存对象
Functions ¶
Types ¶
type SafeAvatarsMap ¶
SafeAvatarsMap 线程安全的数据缓存对象
func (*SafeAvatarsMap) All ¶
func (c *SafeAvatarsMap) All() []*models.Avatar
All returns all of the slice.
func (*SafeAvatarsMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeAvatarsMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
type SafeClustersMap ¶
SafeClustersMap 线程安全的数据缓存对象
func (*SafeClustersMap) All ¶
func (c *SafeClustersMap) All() []*models.Cluster
All returns all of the slice.
func (*SafeClustersMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeClustersMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
func (*SafeClustersMap) GetPage ¶
func (c *SafeClustersMap) GetPage(offset, limit int) (clusters []*models.Cluster)
GetPage 返回一页缓存数据
func (*SafeClustersMap) Include ¶
func (c *SafeClustersMap) Include(f func(*models.Cluster) bool) bool
Include returns true if one of the element in the sliece satisfies the predicate f.
type SafeEdgesMap ¶
SafeEdgesMap 线程安全的数据缓存对象
func (*SafeEdgesMap) All ¶
func (c *SafeEdgesMap) All() []*models.Edge
All returns all of the slice.
func (*SafeEdgesMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeEdgesMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
func (*SafeEdgesMap) Include ¶
func (c *SafeEdgesMap) Include(f func(*models.Edge) bool) bool
Include returns true if one of the element in the sliece satisfies the predicate f.
type SafeGlossariesMap ¶
SafeGlossariesMap 线程安全的数据缓存对象
func (*SafeGlossariesMap) All ¶
func (c *SafeGlossariesMap) All() []*models.Glossary
All returns all of the slice.
func (*SafeGlossariesMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeGlossariesMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
type SafeOptionsMap ¶
SafeOptionsMap 线程安全的数据缓存对象
func (*SafeOptionsMap) All ¶
func (c *SafeOptionsMap) All() []*models.Option
All returns all of the slice.
func (*SafeOptionsMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeOptionsMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
type SafeRolesMap ¶
SafeRolesMap 线程安全的数据缓存对象
func (*SafeRolesMap) All ¶
func (c *SafeRolesMap) All() []*models.Role
All returns all of the slice.
func (*SafeRolesMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeRolesMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
type SafeRulesMap ¶
SafeRulesMap 线程安全的数据缓存对象
func (*SafeRulesMap) All ¶
func (c *SafeRulesMap) All() []*models.Rule
All returns all of the slice.
func (*SafeRulesMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeRulesMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
type SafeStatisticsMap ¶
SafeStatisticsMap 线程安全的数据缓存对象
func (*SafeStatisticsMap) All ¶
func (c *SafeStatisticsMap) All() []*models.Statistic
All returns all of the slice.
func (*SafeStatisticsMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeStatisticsMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
type SafeTemplatesMap ¶
SafeTemplatesMap 线程安全的数据缓存对象
func (*SafeTemplatesMap) All ¶
func (c *SafeTemplatesMap) All() []*models.Template
All returns all of the slice.
func (*SafeTemplatesMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeTemplatesMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
type SafeUsersMap ¶
SafeUsersMap 线程安全的数据缓存对象
func (*SafeUsersMap) All ¶
func (c *SafeUsersMap) All() []*models.User
All returns all of the slice.
func (*SafeUsersMap) Any ¶
Any returns the element if one of the element in the sliece satisfies the predicate f.
func (*SafeUsersMap) Filter ¶
Filter returns a new slice containing all elements in the slice that satisfy the predicate f.
func (*SafeUsersMap) GetPage ¶
func (c *SafeUsersMap) GetPage(offset, limit int) (users []*models.User)
GetPage 返回一页缓存数据
func (*SafeUsersMap) Include ¶
func (c *SafeUsersMap) Include(f func(*models.User) bool) bool
Include returns true if one of the element in the sliece satisfies the predicate f.