unix_xfs

package
v0.0.0-...-3511098 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverOpts = unix.O_DIRECT | unix.O_SYNC
	CreateOpts = DriverOpts | unix.O_WRONLY | unix.O_CREAT | unix.O_EXCL
	ReadOpts   = DriverOpts | unix.O_RDONLY
	AppendOpts = DriverOpts | unix.O_WRONLY | unix.O_APPEND
)

Variables

This section is empty.

Functions

func New

func New(namespace string) (io_driver.IODriver, error)

Types

type IODriver

type IODriver struct {
	io_driver.IODriver
	Namespace string
	Data      string
	Locks     *hashmap.Map[string, uint8]
}

func (*IODriver) Append

func (d *IODriver) Append(record string, payload []byte) error

func (*IODriver) Compact

func (d *IODriver) Compact(record string) error

func (*IODriver) Create

func (d *IODriver) Create(record string, payload []byte) error

func (*IODriver) Delete

func (d *IODriver) Delete(record string) error

func (*IODriver) Merge

func (d *IODriver) Merge(record string, payload []byte) error

func (*IODriver) Read

func (d *IODriver) Read(record string) ([]byte, error)

Jump to

Keyboard shortcuts

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