aboutsummaryrefslogblamecommitdiffstats
path: root/common/db.go
blob: c12a2cfb03cb2d4f3df148d413e0c77b8790bf77 (plain) (tree)
1
2
3
4
5
6
7
8
9
              




                                       
                                
               
                     
 
package common

// Database interface
type Database interface {
    Put(key []byte, value []byte)
    Get(key []byte) ([]byte, error)
    Delete(key []byte) error
    Close()
    Flush() error
}