Documentation ¶
Index ¶
- type LossyLifoQueue
- func (llq *LossyLifoQueue) Add(item interface{})
- func (llq *LossyLifoQueue) GetAll() []interface{}
- func (llq *LossyLifoQueue) MarshalJSON() ([]byte, error)
- func (llq *LossyLifoQueue) Peek() interface{}
- func (llq *LossyLifoQueue) Pop() interface{}
- func (llq *LossyLifoQueue) String() string
- func (llq *LossyLifoQueue) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LossyLifoQueue ¶
type LossyLifoQueue struct { Data *list.List MaxSize int // contains filtered or unexported fields }
func NewLossyLifoQueue ¶
func NewLossyLifoQueue(maxSize int, comparator func(interface{}, interface{}) bool) *LossyLifoQueue
func (*LossyLifoQueue) Add ¶
func (llq *LossyLifoQueue) Add(item interface{})
func (*LossyLifoQueue) GetAll ¶ added in v0.1.15
func (llq *LossyLifoQueue) GetAll() []interface{}
func (*LossyLifoQueue) MarshalJSON ¶ added in v0.1.12
func (llq *LossyLifoQueue) MarshalJSON() ([]byte, error)
func (*LossyLifoQueue) Peek ¶
func (llq *LossyLifoQueue) Peek() interface{}
func (*LossyLifoQueue) Pop ¶
func (llq *LossyLifoQueue) Pop() interface{}
func (*LossyLifoQueue) String ¶
func (llq *LossyLifoQueue) String() string
func (*LossyLifoQueue) UnmarshalJSON ¶ added in v0.1.12
func (llq *LossyLifoQueue) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.