Documentation ¶
Index ¶
- type ConstructCtrl
- func (s *ConstructCtrl) Count() int
- func (s *ConstructCtrl) CountByType(t core.GeoConstructType) int
- func (s *ConstructCtrl) Destroy(key int) bool
- func (s *ConstructCtrl) Expiry(t core.GeoConstructType) int
- func (s *ConstructCtrl) Has(key int) bool
- func (s *ConstructCtrl) New(c core.Construct, refresh bool)
- func (s *ConstructCtrl) NewNoLimitCons(c core.Construct, refresh bool)
- func (s *ConstructCtrl) Tick()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstructCtrl ¶
type ConstructCtrl struct {
// contains filtered or unexported fields
}
func NewCtrl ¶
func NewCtrl(c *core.Core) *ConstructCtrl
func (*ConstructCtrl) CountByType ¶
func (s *ConstructCtrl) CountByType(t core.GeoConstructType) int
func (*ConstructCtrl) Destroy ¶
func (s *ConstructCtrl) Destroy(key int) bool
destroy key if exist, return true if destroyed
func (*ConstructCtrl) Expiry ¶ added in v0.5.5
func (s *ConstructCtrl) Expiry(t core.GeoConstructType) int
func (*ConstructCtrl) Has ¶
func (s *ConstructCtrl) Has(key int) bool
func (*ConstructCtrl) NewNoLimitCons ¶
func (s *ConstructCtrl) NewNoLimitCons(c core.Construct, refresh bool)
func (*ConstructCtrl) Tick ¶
func (s *ConstructCtrl) Tick()
Click to show internal directories.
Click to hide internal directories.