amap

package module
v1.1.0 Latest Latest
Warning

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

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

README

key value strore

Documentation

Overview

amap.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMAP

type AMAP struct {
	Key, Val []string
	//KV       [][2]string
	CurKey string
	CurVal AMAP_val
	// contains filtered or unexported fields
}

func (*AMAP) AsGob

func (am *AMAP) AsGob() string

AsGob

func (*AMAP) AsJson

func (am *AMAP) AsJson() string

AsJson

func (*AMAP) Clear

func (am *AMAP) Clear()

Clear clear amap data

func (*AMAP) Del

func (am *AMAP) Del(Key string)

Del delete one data whith key 'Key'

func (*AMAP) DelIndex

func (am *AMAP) DelIndex(index int)

DelIndex delete data by index

func (*AMAP) DelMulti

func (am *AMAP) DelMulti(Key string)

DelMulti удаление ключа с мультиданными

func (*AMAP) DelN

func (am *AMAP) DelN(Key string, count int)

DelN delete 'count' data whith key 'Key'

func (*AMAP) Expand

func (am *AMAP) Expand(addvaluescount int)

func (*AMAP) FromGob

func (am *AMAP) FromGob(gs string)

FromGob

func (*AMAP) FromJson

func (am *AMAP) FromJson(jtext string) string

FromJson

func (*AMAP) Get

func (am *AMAP) Get(Key string) AMAP_val

GetVal

func (*AMAP) GetAsMapSS

func (am *AMAP) GetAsMapSS() map[string]string

GetAsMapSS get as golang map[string]string

func (*AMAP) GetCount

func (am *AMAP) GetCount() (keys int, vals int)

GetCount return count of keys and values

func (*AMAP) GetFloat

func (am *AMAP) GetFloat(Key string) float64

GetFloat

func (*AMAP) GetInt

func (am *AMAP) GetInt(Key string) int64

GetInt

func (*AMAP) GetMulti

func (am *AMAP) GetMulti(Key string, val ...interface{})

func (*AMAP) GetString

func (am *AMAP) GetString(Key string) string

GetString

func (*AMAP) GetStrings

func (am *AMAP) GetStrings(Key, SepStr string) string

GetStrings

func (*AMAP) GetStringsN

func (am *AMAP) GetStringsN(Key, SepStr string, count int) string

GetStrings

func (*AMAP) Lock

func (am *AMAP) Lock()

Lock locking for multithreaded access

func (*AMAP) New

func (am *AMAP) New(Key string, Val interface{})

New add new key,value

func (*AMAP) NewMulti

func (am *AMAP) NewMulti(Key string, val ...interface{})

func (*AMAP) Next

func (am *AMAP) Next() bool

Next

func (*AMAP) NextKey

func (am *AMAP) NextKey(skey string, val interface{}) bool

NextKey

func (*AMAP) NextMulti

func (am *AMAP) NextMulti() bool

NextMulti

func (*AMAP) NextMultiKey

func (am *AMAP) NextMultiKey(skey string, val ...interface{}) bool

NextMultiKey

func (*AMAP) OpenJson

func (am *AMAP) OpenJson(fname string) string

OpenJson load from json

func (*AMAP) Print

func (am *AMAP) Print()

Print amap for dbuging

func (*AMAP) ResizeFromEnd

func (am *AMAP) ResizeFromEnd(newsize int)

Roll resize amap whith copy data of last 'newsize' elemets to start of amap amap[1:10] -> Roll(5) = amap[6:10] new amap will be aligned by last multielemetn

func (*AMAP) RunSaver

func (am *AMAP) RunSaver(fname string, sec int)

RunSaver save amap as json 'fname' whith interval 'sec' seconds

func (*AMAP) SaveAsJson

func (am *AMAP) SaveAsJson(fname string)

SaveAsJson save to json file

func (*AMAP) Set

func (am *AMAP) Set(Key string, Val interface{})

Set Set data whith key. Add new if not found

func (*AMAP) SetMulti

func (am *AMAP) SetMulti(Key string, val ...interface{})

func (*AMAP) SetString

func (am *AMAP) SetString(Key, Val string)

SetString setting string data. Add new if not found

func (*AMAP) UnLock

func (am *AMAP) UnLock()

UnLock unlocking after multithreaded access

func (*AMAP) UpdateMulti

func (am *AMAP) UpdateMulti(Key string, val ...interface{}) bool

type AMAP_table

type AMAP_table struct {
}

type AMAP_val

type AMAP_val struct {
	Str string
}

func (AMAP_val) AsFloat

func (av AMAP_val) AsFloat() float64

func (AMAP_val) AsInt

func (av AMAP_val) AsInt() int64

Jump to

Keyboard shortcuts

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