Documentation ¶
Index ¶
- type ACLOption
- type ACLType
- type IOssStore
- type OssStore
- func (c *OssStore) Delete(ctx context.Context, key string) error
- func (c *OssStore) DeleteMulti(ctx context.Context, keys []string) ([]string, error)
- func (c *OssStore) Get(ctx context.Context, key string) (data []byte, err error)
- func (c *OssStore) Save(ctx context.Context, key string, data []byte, opts ...ACLOption) error
- func (c *OssStore) SetStore(i IOssStore)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOssStore ¶
type IOssStore interface { //Save save k-v Save(ctx context.Context, key string, data []byte, acl ACLType) error //Delete delete k Delete(ctx context.Context, key string) error //DeleteMulti delete multi keys DeleteMulti(ctx context.Context, keys []string) ([]string, error) //Get get v from k Get(ctx context.Context, key string) (data []byte, err error) }
IOssStore store interface
type OssStore ¶
type OssStore struct {
// contains filtered or unexported fields
}
OssStore store container
var ( //OssStoreIns global instance OssStoreIns *OssStore )
func (*OssStore) DeleteMulti ¶
DeleteMulti delete multi
Click to show internal directories.
Click to hide internal directories.