storage

package
v0.0.0-...-7e28e3f Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Backends = make(map[string]BackendLoader)

Functions

func GetOrCreateUUID

func GetOrCreateUUID(path string) (identifier.UUID, error)

func LoadStorage

func LoadStorage(file string) (map[string]istorage.Storage, error)

Types

type BackendLoader

type BackendLoader func(path string, cfg *StorageConfig) (string, istorage.Storage, error)

type Size

type Size struct {
	K, M, G, T, P uint16
}

func (*Size) Int64

func (s *Size) Int64() int64

type StorageConfig

type StorageConfig struct {
	Method   string `confl:"method"`
	Capacity *Size  `confl:"capacity"`

	Options []string `confl:"options"`

	// File-Based special
	MaxOpenFiles int `confl:"max_open"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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