driver

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index interface {
	Len(namespace string) int
	Namespaces() []string
	Get(namespace string, key string) (interface{}, bool)
	Set(namespace string, key string, value interface{})
	Range(namespace string, f func(key string, value interface{}) bool)
	Delete(namespace string, key string)
	Exists(namespace string, key string) bool
	Clear(namespace string)
	Close()
}

func NewInMemIndex

func NewInMemIndex() Index

type Queue

type Queue interface {
	Enqueue(val interface{})
	Dequeue() (interface{}, bool)
	IsEmpty() bool
	Len() int
	Range(fn func(element interface{}) bool)
}

func NewInMemQueue

func NewInMemQueue() Queue

type Stack

type Stack interface {
	Pop() (interface{}, bool)
	Push(f interface{})
	Range(fn func(element interface{}) bool)
	IsEmpty() bool
	Len() int
}

func NewInMemStack

func NewInMemStack() Stack

Jump to

Keyboard shortcuts

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