plugin_localStorage

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbInit

func DbInit()

func Delete

func Delete(id int) error

func Insert

func Insert(data Data) error

func StorageInit

func StorageInit()

Types

type Data

type Data struct {
	Id     int    `json:"id" db:"id"`
	Key    string `json:"key" db:"key"`
	Value  string `json:"value" db:"value"`
	UserId string `json:"userId" db:"user_id"`
	Time   string `json:"time" db:"time"`
}

func Get

func Get(id int) (Data, error)

func Query

func Query(userId int) ([]Data, error)

Jump to

Keyboard shortcuts

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