cfgs

package
v0.0.0-...-9645bb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL