common

package
v0.0.0-...-8104a2c Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSHA512

func CalculateSHA512(data []byte) string

Types

type Chunk

type Chunk struct {
	Hash  string `msgpack:"hash"`
	Size  int64  `msgpack:"size"`
	Index int    `msgpack:"index"`
}

type ClientConfiguration

type ClientConfiguration struct {
	Chunks struct {
		Size int64
	}
	Tracker struct {
		Address string
	}
}

func ProcessClientConfiguration

func ProcessClientConfiguration() ClientConfiguration

type File

type File struct {
	Size      int64   `msgpack:"size"`
	Name      string  `msgpack:"name"`
	Algorithm string  `msgpack:"algorithm"`
	Chunks    []Chunk `msgpack:"chunks"`
	Tar       bool    `msgpack:"tar"`
}

Jump to

Keyboard shortcuts

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