Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchKey = fmt.Errorf("no such key")
Functions ¶
Types ¶
type AliOSSConfig ¶
type AwsOSSConfig ¶ added in v1.0.5
type LevelDBConfig ¶
type LevelDBConfig struct {
Dir string `json:"dir"`
}
type OSS ¶
type OSS interface { micro.Recycle Get(key string) ([]byte, error) GetURL(key string) string GetSignURL(key string, expires time.Duration) (string, error) Put(key string, data []byte, header map[string]string) error PutSignURL(key string, expires time.Duration, header map[string]string) (string, error) PostSignURL(key string, expires time.Duration, maxSize int64, header map[string]string) (string, map[string]string, error) Del(key string) error Has(key string) (bool, error) }
func NewAliOSS ¶
func NewAliOSS(cfg *AliOSSConfig) (OSS, error)
func NewAwsOSS ¶ added in v1.0.5
func NewAwsOSS(cfg *AwsOSSConfig) (OSS, error)
func NewLevelDB ¶
func NewLevelDB(cfg *LevelDBConfig) (OSS, error)
type OSSService ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.