aboutsummaryrefslogtreecommitdiff
path: root/recno
diff options
context:
space:
mode:
authorDimitri Sokolyuk <sokolyuk@gmail.com>2021-11-22 13:48:19 +0100
committerDimitri Sokolyuk <sokolyuk@gmail.com>2021-11-22 13:48:19 +0100
commit1f1942ec0a4e55b3488a1771475994253bfe9b9e (patch)
tree0963f3b306cf5fdb7846c88102a18c462d096387 /recno
parent172fe8ad99288d4a4976089955a75bd28f5da764 (diff)
Move
Diffstat (limited to 'recno')
-rw-r--r--recno/recno.go39
1 files changed, 39 insertions, 0 deletions
diff --git a/recno/recno.go b/recno/recno.go
new file mode 100644
index 0000000..07a2050
--- /dev/null
+++ b/recno/recno.go
@@ -0,0 +1,39 @@
+package recno
+
+import "os"
+
+type RecNo struct {
+ file *os.File
+}
+
+func New(file *os.File) *RecNo {
+ return &RecNo{file: file}
+}
+
+func (r *RecNo) Close() error {
+ return r.file.Close()
+}
+
+func (r *RecNo) Del(key []byte, flags uint) error {
+ panic("not implemented")
+}
+
+func (r *RecNo) Fd() uintptr {
+ return r.file.Fd()
+}
+
+func (r *RecNo) Get(key []byte, flags uint) ([]byte, error) {
+ panic("not implemented")
+}
+
+func (r *RecNo) Put(key []byte, data []byte, flags uint) error {
+ panic("not implemented")
+}
+
+func (r *RecNo) Sync(flags uint) error {
+ panic("not implemented")
+}
+
+func (r *RecNo) Seq(key []byte, flags uint) ([]byte, error) {
+ panic("not implemented")
+}