Documentation ¶
Index ¶
- Variables
- func RegisterCache(name string, driver CacheDriver) error
- func RegisterDB(name string, driver DBDriver) error
- func RegisterFS(name string, driver FSDriver) error
- func SetIsDev(isDevValue bool)
- func SetLogger(logger *logx.Logger)
- type Cache
- type CacheDriver
- type DB
- type DBDriver
- type FS
- type FSDriver
- type ListItem
- type LocalLRUFS
- type SimpleS3Client
- type SimpleS3ClientConfig
- type Store
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterCache ¶
func RegisterCache(name string, driver CacheDriver) error
func RegisterDB ¶
func RegisterFS ¶
Types ¶
type Cache ¶
type CacheDriver ¶
type DB ¶
type FS ¶
type LocalLRUFS ¶
type LocalLRUFS struct{}
type SimpleS3Client ¶
type SimpleS3Client interface { Head(key *string) (*s3.HeadObjectOutput, error) Get(key *string) (*s3.GetObjectOutput, error) Put(key *string, body io.Reader) (*s3.PutObjectOutput, error) Delete(key *string) (*s3.DeleteObjectOutput, error) Download(key *string, size int64) (io.ReadSeekCloser, error) Upload(key *string, body io.Reader) error }
func NewS3Client ¶
func NewS3Client(simpleConfig *SimpleS3ClientConfig) (SimpleS3Client, error)
type SimpleS3ClientConfig ¶
Click to show internal directories.
Click to hide internal directories.