Documentation ¶
Index ¶
Constants ¶
View Source
const ( LINUX_DIRECT = 0x4000 WINDOWS_NO_BUFF = 0x20000000 WINDOWS_WRITE_THROUGH = 0x80000000 )
Variables ¶
This section is empty.
Functions ¶
func GenerateFn ¶
func GenerateFn(pattern *strftime.Strftime, clock interface{ Now() time.Time }, rotationTime time.Duration) string
GenerateFn creates a fh name based on the pattern, the current time, and the rotation time.
The bsase time that is used to generate the filename is truncated based on the rotation time.
func Get4096ByteNbsp ¶
func Get4096ByteNbsp() []byte
Types ¶
type BuffIO ¶
type BuffIO struct {
// contains filtered or unexported fields
}
func (*BuffIO) CreateFile ¶
CreateFile creates a new fh in the given path, creating parent directories as necessary
type DirectIO ¶
type DirectIO struct {
// contains filtered or unexported fields
}
func (*DirectIO) CreateFile ¶
type IOWriter ¶
type IOWriter interface { CreateFile(filename string) error Write(p []byte) (n int, err error) Close() error SyncFile() error }
func GenerateBuffIO ¶
func GenerateBuffIO() IOWriter
CreateFile creates a new fh in the given path, creating parent directories as necessary
func GenerateDirectIO ¶
func GenerateDirectIO() IOWriter
Click to show internal directories.
Click to hide internal directories.