zseries

package
v0.0.0-...-98e8571 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_DIR     = "_zseries"
	FILE_SIZE    = 52428800
	SEGMENT_SIZE = 1048576
)

Variables

This section is empty.

Functions

func Fadvise

func Fadvise(fd int, offset, length int64) error

func Fallocate

func Fallocate(fd int, mode uint32, offset, length int64) error

func Ftruncate

func Ftruncate(fd int, length int64) error

Types

type AsyncWriter

type AsyncWriter struct {
	// contains filtered or unexported fields
}

func (*AsyncWriter) Write

func (w *AsyncWriter) Write(p []byte) (int, error)

type OrderedWriter

type OrderedWriter struct {
	// contains filtered or unexported fields
}

func NewOrderedWriter

func NewOrderedWriter(w io.Writer, ticket uint32) *OrderedWriter

func (*OrderedWriter) Write

func (w *OrderedWriter) Write(p []byte) (int, error)

type ZFiles

type ZFiles map[string]*handler

type ZSeries

type ZSeries struct {
	Handlers ZFiles
}

func NewZSeries

func NewZSeries() *ZSeries

func (*ZSeries) Close

func (z *ZSeries) Close() error

func (*ZSeries) Write

func (z *ZSeries) Write(key string, data []byte) (int, error)

Jump to

Keyboard shortcuts

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