tmap

package
v0.0.0-...-c9cf022 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TMap

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

func NewTMap

func NewTMap() *TMap

func (*TMap) Add

func (t *TMap) Add(k interface{}, v interface{}, timeoutms int)

func (*TMap) Del

func (t *TMap) Del(k interface{})

func (*TMap) Get

func (t *TMap) Get(k interface{}) interface{}

func (*TMap) Update

func (t *TMap) Update()

func (*TMap) Valid

func (t *TMap) Valid(k interface{}) bool

type TMapValue

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

type TMysql

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

func NewTMysql

func NewTMysql(dsn string, conn int, table string, day int) *TMysql

func (*TMysql) FindValue

func (t *TMysql) FindValue(str string, max int) []TMysqlFindData

func (*TMysql) GetSize

func (t *TMysql) GetSize() int

func (*TMysql) Has

func (t *TMysql) Has(key string) bool

func (*TMysql) Insert

func (t *TMysql) Insert(key string, value string) error

func (*TMysql) Last

func (t *TMysql) Last(n int) []TMysqlFindData

func (*TMysql) Load

func (t *TMysql) Load() error

type TMysqlFindData

type TMysqlFindData struct {
	Name  string
	Value string
}

Jump to

Keyboard shortcuts

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