Documentation ¶
Overview ¶
Package nutsdb @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package nutsdb @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package nutsdb @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package nutsdb @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package nutsdb @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Index ¶
- Variables
- func NewClientV1(types marshal.CosType, position string) (client link.ClientV1Interface)
- func OnConfig(str string)
- type Nutsdb
- func (c *Nutsdb) BucketInfo(ctx context.Context) (*marshal.BucketInfo, error)
- func (c *Nutsdb) GetData(moduleName string, data []byte) (m *marshal.ObjectsInfo)
- func (c *Nutsdb) GetLocation(moduleName string) string
- func (c *Nutsdb) GetObject(ctx context.Context, moduleName string) (m *marshal.ObjectsInfo, err error)
- func (c *Nutsdb) GetObjectExists(ctx context.Context, moduleName string) (bool, error)
- func (c *Nutsdb) GetObjectList(ctx context.Context, moduleNames []string) (list []*marshal.ObjectsInfo, err error)
- func (c *Nutsdb) GetObjectUrl(ctx context.Context, moduleName string) (string, error)
- func (c *Nutsdb) PutByObject(ctx context.Context, moduleName string, reader []byte) (err error)
- func (c *Nutsdb) PutByObjectList(ctx context.Context, maps map[string][]byte) (err error)
- func (c *Nutsdb) RemoveByObject(ctx context.Context, moduleName string) error
- func (c *Nutsdb) RemoveByObjectList(ctx context.Context, moduleNames []string) error
Constants ¶
This section is empty.
Variables ¶
var (
Request = &Nutsdb{}
)
Functions ¶
func NewClientV1 ¶
func NewClientV1(types marshal.CosType, position string) (client link.ClientV1Interface)
NewClientV1 存储客户端管理
Types ¶
type Nutsdb ¶
type Nutsdb struct { CosType marshal.CosType `dc:"代理仓库缓存类型"` Storage string `yaml:"storage" default:"./storage/nutsdb" dc:"持久化nutsdb存储文件路径"` Bucket string `yaml:"bucket" default:"nutsdb" dc:"对应的桶名称"` // contains filtered or unexported fields }
func (*Nutsdb) BucketInfo ¶
func (*Nutsdb) GetData ¶
func (c *Nutsdb) GetData(moduleName string, data []byte) (m *marshal.ObjectsInfo)
GetData 组装数据存储对象
func (*Nutsdb) GetLocation ¶
GetLocation 组装并获取存储位置