...

Source file src/github.com/syndtr/goleveldb/leveldb/storage/file_storage_nacl.go

Documentation: github.com/syndtr/goleveldb/leveldb/storage

     1  // Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
     2  // All rights reserved.
     3  //
     4  // Use of this source code is governed by a BSD-style license that can be
     5  // found in the LICENSE file.
     6  
     7  //go:build nacl
     8  // +build nacl
     9  
    10  package storage
    11  
    12  import (
    13  	"os"
    14  	"syscall"
    15  )
    16  
    17  func newFileLock(path string, readOnly bool) (fl fileLock, err error) {
    18  	return nil, syscall.ENOTSUP
    19  }
    20  
    21  func setFileLock(f *os.File, readOnly, lock bool) error {
    22  	return syscall.ENOTSUP
    23  }
    24  
    25  func rename(oldpath, newpath string) error {
    26  	return syscall.ENOTSUP
    27  }
    28  
    29  func isErrInvalid(err error) bool {
    30  	return false
    31  }
    32  
    33  func syncDir(name string) error {
    34  	return syscall.ENOTSUP
    35  }
    36  

View as plain text