package
Version:
v0.0.0-...-a3c49ea
Opens a new window with list of versions in this module.
Published: May 18, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
二进制序列化工具
1. msgpack github.com/vmihailenco/msgpack
2. protobuf github.com/golang/protobuf/proto
Documentation
¶
-
func Add(id []byte, payload []byte, filename string, timestamp interface{}) ([]byte, error)
-
func Query(id []byte, filename string) ([]byte, error)
-
func Remove(id []byte, filename string) ([]byte, error)
-
func Update(id []byte, payload map[string]interface{}, filename string, ...) ([]byte, error)
-
func UpdateToString(id []byte, payload string, filename string) ([]byte, error)
@package Add 数据库新增数据
* @param id 查询数据uuid
* @param filename 项目路径关键词
* @param payload 新增数据map结构
* @param timestamp 过期时间TTL,单位s
@package Query 查询数据
* @param id 查询数据uuid
* @param filename 项目路径关键词
@package Update 数据库新增数据
* @param id 查询数据uuid
* @param filename 项目路径关键词
* @param payload 新增数据map结构
* @param timestamp 过期时间TTL,单位s
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.