Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectDestroy ¶
type ObjectDestroy interface {
Destroy()
}
type SimpleLockStack ¶
type SimpleLockStack struct {
Current *SimpleLockStackElement
Creator func() interface{}
// contains filtered or unexported fields
}
func NewStackLock ¶
func NewStackLock(startsize, maxsize int, creator func() interface{}) *SimpleLockStack
func (*SimpleLockStack) Active ¶
func (s *SimpleLockStack) Active() int
func (*SimpleLockStack) Capacity ¶
func (s *SimpleLockStack) Capacity() int
func (*SimpleLockStack) Len ¶
func (s *SimpleLockStack) Len() int
func (*SimpleLockStack) Pop ¶
func (s *SimpleLockStack) Pop() (value interface{})
func (*SimpleLockStack) Push ¶
func (s *SimpleLockStack) Push(value interface{})
func (*SimpleLockStack) String ¶
func (s *SimpleLockStack) String() string
type SimpleLockStackElement ¶
type SimpleLockStackElement struct {
Value interface{}
Previous *SimpleLockStackElement
Next *SimpleLockStackElement
}
Click to show internal directories.
Click to hide internal directories.