badger

package
v0.0.0-...-a3c49ea Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

README

二进制序列化工具

1. msgpack github.com/vmihailenco/msgpack
2. protobuf github.com/golang/protobuf/proto

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(id []byte, payload []byte, filename string, timestamp interface{}) ([]byte, error)

@package Add 数据库新增数据 * @param id 查询数据uuid * @param filename 项目路径关键词 * @param payload 新增数据map结构 * @param timestamp 过期时间TTL,单位s

func Query

func Query(id []byte, filename string) ([]byte, error)

@package Query 查询数据 * @param id 查询数据uuid * @param filename 项目路径关键词

func Remove

func Remove(id []byte, filename string) ([]byte, error)

*

func Update

func Update(id []byte, payload map[string]interface{}, filename string, timestamp interface{}) ([]byte, error)

@package Update 数据库新增数据 * @param id 查询数据uuid * @param filename 项目路径关键词 * @param payload 新增数据map结构 * @param timestamp 过期时间TTL,单位s

func UpdateToString

func UpdateToString(id []byte, payload string, filename string) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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