aboutsummaryrefslogtreecommitdiff
path: root/internal/hash/hash.go
blob: 4a718be44195be59a4f6c4e975c92565aeda2f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package hash

import "os"

const (
	Magic   = 0x061561
	Version = 2
)

type Hash struct {
	file *os.File
}

func New(file *os.File) *Hash {
	return &Hash{file: file}
}

func (h *Hash) Close() error {
	return h.file.Close()
}

func (h *Hash) Del(key []byte, flags uint) error {
	panic("not implemented")
}

func (h *Hash) Fd() uintptr {
	return h.file.Fd()
}

func (h *Hash) Get(key []byte, flags uint) ([]byte, error) {
	panic("not implemented")
}

func (h *Hash) Put(key []byte, data []byte, flags uint) error {
	panic("not implemented")
}

func (h *Hash) Sync(flags uint) error {
	panic("not implemented")
}

func (h *Hash) Seq(key []byte, flags uint) ([]byte, error) {
	panic("not implemented")
}