Documentation ¶ Overview ¶ hmac.go is located in db instead of util to avoid import cycle issues Index ¶ Constants func Close() func FileUpdate() func HMAC(source string, i int) func Open() func Status() string func Sync() type DBRecord type DBSlice 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 } } } Source Files ¶ View all Source files db.go hmac.go Click to show internal directories. Click to hide internal directories.