atom

package
v0.0.0-...-2337eca Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atom

type Atom struct {
	Id         string    `json:"id"`
	MoleculeId string    `json:"molecule_id"`
	CubeId     string    `json:"cube_id"`
	PartId     int64     `json:"part_id"`
	Hash       string    `json:"hash"`
	CreatedAt  time.Time `json:"created_at"`
	Child      *Atom     `json:"-"`
	Delete     bool      `json:"delete"`
	Size       int64     `json:"size"`
}

Container for chunks of backedup files. May refer to all or part of a file.

func New

func New(moleculeId string, cubeId string, size int64) *Atom

Create a new atom.

func (*Atom) Header

func (a *Atom) Header() ([]byte, error)

Serialize the atom header.

Jump to

Keyboard shortcuts

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