Documentation ¶
Index ¶
- type SafeList
- func (this *SafeList) BackAll() []interface{}
- func (this *SafeList) Front() interface{}
- func (this *SafeList) FrontAll() []interface{}
- func (this *SafeList) Len() int
- func (this *SafeList) PopBack() interface{}
- func (this *SafeList) PopBackAll() []interface{}
- func (this *SafeList) PopBackBy(max int) []interface{}
- func (this *SafeList) PushFront(v interface{}) *list.Element
- func (this *SafeList) PushFrontBatch(vs []interface{})
- func (this *SafeList) Remove(e *list.Element) interface{}
- func (this *SafeList) RemoveAll()
- type SafeListLimited
- func (this *SafeListLimited) Front() interface{}
- func (this *SafeListLimited) FrontAll() []interface{}
- func (this *SafeListLimited) Len() int
- func (this *SafeListLimited) PopBack() interface{}
- func (this *SafeListLimited) PopBackBy(max int) []interface{}
- func (this *SafeListLimited) PushFront(v interface{}) bool
- func (this *SafeListLimited) PushFrontBatch(vs []interface{}) bool
- func (this *SafeListLimited) PushFrontViolently(v interface{}) bool
- func (this *SafeListLimited) RemoveAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeList ¶
func NewSafeList ¶
func NewSafeList() *SafeList
func (*SafeList) PopBackAll ¶
func (this *SafeList) PopBackAll() []interface{}
func (*SafeList) PushFrontBatch ¶
func (this *SafeList) PushFrontBatch(vs []interface{})
type SafeListLimited ¶
type SafeListLimited struct { SL *SafeList // contains filtered or unexported fields }
SafeList with Limited Size
func NewSafeListLimited ¶
func NewSafeListLimited(maxSize int) *SafeListLimited
func (*SafeListLimited) Front ¶
func (this *SafeListLimited) Front() interface{}
func (*SafeListLimited) FrontAll ¶
func (this *SafeListLimited) FrontAll() []interface{}
func (*SafeListLimited) Len ¶
func (this *SafeListLimited) Len() int
func (*SafeListLimited) PopBack ¶
func (this *SafeListLimited) PopBack() interface{}
func (*SafeListLimited) PopBackBy ¶
func (this *SafeListLimited) PopBackBy(max int) []interface{}
func (*SafeListLimited) PushFront ¶
func (this *SafeListLimited) PushFront(v interface{}) bool
func (*SafeListLimited) PushFrontBatch ¶
func (this *SafeListLimited) PushFrontBatch(vs []interface{}) bool
func (*SafeListLimited) PushFrontViolently ¶
func (this *SafeListLimited) PushFrontViolently(v interface{}) bool
func (*SafeListLimited) RemoveAll ¶
func (this *SafeListLimited) RemoveAll()
Click to show internal directories.
Click to hide internal directories.