ds

package module
v0.0.0-...-6476654 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 2 Imported by: 0

README

ds

Data Structure

Build Status Coverage Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	sync.Mutex

	C chan []interface{}
	// contains filtered or unexported fields
}

func NewBuffer

func NewBuffer(chunkSize, bufferSize int, delay time.Duration) *Buffer

func (*Buffer) Close

func (b *Buffer) Close()

func (*Buffer) Push

func (b *Buffer) Push(item interface{})

type List

type List struct {
	// contains filtered or unexported fields
}

func NewList

func NewList() *List

func (*List) Add

func (list *List) Add(value interface{})

func (*List) Clear

func (list *List) Clear()

func (*List) Get

func (list *List) Get() (bool, interface{})

func (*List) Len

func (list *List) Len() int

Jump to

Keyboard shortcuts

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