Documentation ¶
Index ¶
Constants ¶
View Source
const ( STATE_COMPLETED = "completed" STATE_FAILED = "failed" STATE_MISSING = "missing" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct { Name string `json:"name"` Real_size int `json:"real_size"` Index int `json:"int"` TargetNames []string `json:"targets"` Checksum string `json:"checksum"` // contains filtered or unexported fields }
Chunk: it represents a portion of a Kirinuki files
func NewChunk ¶
func NewChunk(index int, name string, opts ...ChunkOption) *Chunk
NewChunk: it creates a new chunk with the index and name
func (*Chunk) GetFilename ¶
GetFilename: it returns the filename of chunk's data
type ChunkOption ¶
type ChunkOption func(*Chunk)
func WithFilename ¶
func WithFilename(filename string) ChunkOption
Setting the filename which contain the chunk's data
type Mosaic ¶
type Mosaic struct {
// contains filtered or unexported fields
}
Mosaic is in charge of providing high level upload/download methods for Kirinuki files, handling the splitting feature
func New ¶
func New(ms *storage.MultiStorage, opts ...MosaicOption) *Mosaic
type MosaicOption ¶
type MosaicOption func(*Mosaic)
Click to show internal directories.
Click to hide internal directories.