utils

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 2 Imported by: 38

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL