jdfs

package
v0.0.0-...-4df14f3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 20 Imported by: 0

Documentation

Overview

Package jdfs defines implementation of the Just Data FileSystem server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportTCP

func ExportTCP(exportRoot string, servAddr string) (err error)

ExportTCP exports the specified root directory from local filesystem, with this dir and any sub directory under it (only if belongs to the same local filesystem) mountable as JDFS over TCP network, at the specified TCP service address.

Types

type BufPool

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

BufPool maintains a pool of bytes buffer, with capacity aligned to os page size.

func (*BufPool) Get

func (bp *BufPool) Get(length int) (buf []byte)

Get returns a byte slice with specified length, its capacity is aligned to os page size boundaries.

func (*BufPool) Return

func (bp *BufPool) Return(buf []byte)

Return puts the specified byte slice back into the pool, its capacity must be aligned to os page size boundaries.

Jump to

Keyboard shortcuts

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