safeMap

package
v0.0.0-...-1a8195b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	REMOVE commandAction = iota
	FLUSH
	FIND
	INSERT
	COUNT
	TRUNCATE
	END
)

Auto inc command

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeMap

type SafeMap interface {
	Insert(string, interface{})
	Delete(string)
	Truncate()
	Flush([]string)
	Find(string) (interface{}, bool)
	Len() int
	Close() map[string]interface{}
}

SafeMap the main interface for communicating with the storage

func NewStorage

func NewStorage() SafeMap

NewStorage - make new storage, return interface SafeMap

Jump to

Keyboard shortcuts

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