Documentation ¶
Index ¶
- type Factory
- func (f *Factory) CheckSize(size int64) error
- func (f *Factory) CheckType(tp string) error
- func (f *Factory) ChunkCount(size int64) int
- func (f *Factory) FileMime(body []byte) string
- func (f *Factory) FileSrc(src string) string
- func (f *Factory) FileSrcFormat() string
- func (f *Factory) GetType(name string) string
- func (f *Factory) MaxChunkSize() int64
- func (f *Factory) MaxSingularSize() int64
- func (f *Factory) Storage() string
- func (f *Factory) Store(ctx kratosx.Context) (store2.Store, error)
- func (f *Factory) StoreKey(sha, tp string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func (*Factory) FileSrcFormat ¶
func (*Factory) MaxSingularSize ¶
MaxSingularSize 获取单个文件的最大大小,单位KB
Click to show internal directories.
Click to hide internal directories.