Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KB uint64 = 1024 MB = KB * KB )
Functions ¶
This section is empty.
Types ¶
type FSConfiguration ¶
type FSConfiguration struct { Perm cfgs.FSPerm MemoryRent uint64 FlushType cfgs.FlushType FlushDuration time.Duration //depends on FlushType FlushSize uint64 //depends on FlushType }
* FSConfiguration is a configuration for each reader or writer instance of you will get from existing fs pool * Perm: will define permission of fs * memoryRent: will get specific amount of memory for reading from file or writing into file to speed up the write or read process (unit is byte) * flushType: flush type define how to flush into file * flushDuration: flushing into disk for each instance by timer * flushSize: flushing into disk for each instance by size (unit is byte)
func (*FSConfiguration) New ¶
func (c *FSConfiguration) New()
New sets default config for FSConfiguration
Click to show internal directories.
Click to hide internal directories.