blimpy

package module
v0.0.0-...-49098e3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2014 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blimpy

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

func New

func New(config *Config) (*Blimpy, error)

type Config

type Config struct {
	DataDir string `json:"dataDir"`
	ApiPort int    `json:"apiPort"`
}

type FSFileManager

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

func NewFSFileManager

func NewFSFileManager(root string) (*FSFileManager, error)

func (*FSFileManager) DeleteFile

func (self *FSFileManager) DeleteFile(id string) error

func (*FSFileManager) GetFile

func (self *FSFileManager) GetFile(id string) (*File, error)

func (*FSFileManager) GetRoot

func (self *FSFileManager) GetRoot() string

func (*FSFileManager) InsertFile

func (self *FSFileManager) InsertFile(file *File, fd *os.File) error

func (*FSFileManager) SetRoot

func (self *FSFileManager) SetRoot(root string) error

func (*FSFileManager) UpdateFile

func (self *FSFileManager) UpdateFile(file *File) error

type File

type File struct {
	Id          string `db:"id"`
	Name        string `db:"name"`
	Description string `db:"description"`
	MimeType    string `db:"mime_type"`
	// contains filtered or unexported fields
}

func (*File) Close

func (self *File) Close()

func (*File) File

func (self *File) File() *os.File

func (*File) IsOpen

func (self *File) IsOpen() bool

func (*File) Open

func (self *File) Open() error

func (*File) Read

func (self *File) Read(p []byte) (int, error)

func (*File) Seek

func (self *File) Seek(offset int64, whence int) (int64, error)

func (*File) Write

func (self *File) Write(p []byte) (int, error)

type FileManager

type FileManager interface {
	GetRoot() string
	SetRoot(root string) error
	GetFile(id string) (*File, error)
	DeleteFile(id string) error
	InsertFile(file *File) error
	UpdateFile(file *File) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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