Documentation
¶
Overview ¶
Copyright (C) 2018 go-dappley authors
This file is part of the go-dappley library.
the go-dappley library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
the go-dappley library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the go-dappley library. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2018 go-dappley authors ¶
This file is part of the go-dappley library.
the go-dappley library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
the go-dappley library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the go-dappley library. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrKeyInvalid = errors.New("Key is invalid")
)
var (
ErrLevelDbNotAbleToOpenFile = errors.New("leveldb fails to open file")
)
Functions ¶
func GetFileConnection ¶
func SaveToFile ¶
Types ¶
type RamStorage ¶
type RamStorage struct {
// contains filtered or unexported fields
}
func NewRamStorage ¶
func NewRamStorage() *RamStorage
func (*RamStorage) Close ¶
func (rs *RamStorage) Close() error
func (*RamStorage) Put ¶
func (rs *RamStorage) Put(key []byte, val []byte)