Documentation ¶ Index ¶ func DbInit() func Delete(id int) error func Insert(data Data) error func StorageInit() type Data func Get(id int) (Data, error) func Query(userId int) ([]Data, error) 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) Source Files ¶ View all Source files Storage.go dataSource.go Click to show internal directories. Click to hide internal directories.