Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoubleBuffering ¶
type DoubleBuffering struct {
// contains filtered or unexported fields
}
func (*DoubleBuffering) Get ¶
func (d *DoubleBuffering) Get() TargetRef
Get returns the target this DoubleBuffering manipulated. You should call TargetRef.Release() function after you have used it.
func (*DoubleBuffering) LatestConfMD5 ¶
func (d *DoubleBuffering) LatestConfMD5() string
LatestConfMD5 returns the latest config's md5
func (*DoubleBuffering) ReloadTimestamp ¶
func (d *DoubleBuffering) ReloadTimestamp() int64
ReloadTimestamp returns the latest timestamp when the DoubleBuffering reloaded at the last time
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) Get ¶
func (m *Manager) Get(name string) *DoubleBuffering
type Target ¶
DoubleBufferingTarget is the interface that wraps the basic operations on a resource.
Initialize does some initialization operations on the resource. When Initialize encounters an error implementations must return false.
Close does some resource recycling works which cannot be done by GC of Golang.
type TargetCreator ¶
type TargetCreator func() Target
Click to show internal directories.
Click to hide internal directories.