tstore

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const (
	CodeSuccess = 200
)

Variables

This section is empty.

Functions

func InitTStore

func InitTStore(svc string) (err error)

func PBGet

func PBGet(uid string, path string) ([]byte, error)

func PBGetInt added in v0.1.13

func PBGetInt(uid string, path string) (int64, error)

func PBGetStr

func PBGetStr(uid string, path string) (string, error)

func PBSave

func PBSave(uid string, path string, value interface{}) error

func PBSaveStr

func PBSaveStr(uid string, path string, value string) error

Types

type MapManger added in v0.1.12

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

func GetMapMgr added in v0.1.12

func GetMapMgr() *MapManger

func (*MapManger) BatchSave added in v0.1.12

func (m *MapManger) BatchSave(uid, path string, param map[string]interface{}) error

func (*MapManger) Error added in v0.1.12

func (m *MapManger) Error() error

func (*MapManger) Fetch added in v0.1.12

func (m *MapManger) Fetch(uid, path string, key string) *MapManger

func (*MapManger) GetStrValue added in v0.1.12

func (m *MapManger) GetStrValue() (string, error)

func (*MapManger) Keys added in v0.1.16

func (m *MapManger) Keys(uid, path string) (ks []string, err error)

func (*MapManger) Save added in v0.1.12

func (m *MapManger) Save(uid, path string, key string, value interface{}) error

func (*MapManger) Scan added in v0.1.12

func (m *MapManger) Scan(dest interface{}) *MapManger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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