db

package
v0.0.0-...-575db3a Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

hmac.go is located in db instead of util to avoid import cycle issues

Index

Constants

View Source
const FileBucket = "FileBucket"

Variables

This section is empty.

Functions

func Close

func Close()

func FileUpdate

func FileUpdate()

func HMAC

func HMAC(source string, i int)

func Open

func Open()

func Status

func Status() string

func Sync

func Sync()

Types

type DBRecord

type DBRecord struct {
	Filename   []byte
	UploadTime time.Time
	Mutex      sync.Mutex
	Slices     DBSlice
}
var FileInfo DBRecord

type DBSlice

type DBSlice map[string]struct {
	Raptor int
	Shard  [32 + util.MaxRaptor]struct {
		Wallet string // Wallet Address of the farmer
		Hmac   []byte
		Random [32]struct {
			Offset int
			Value  [4]byte
		}
	}
}

Jump to

Keyboard shortcuts

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