Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DS = func() *DataStore { dir := os.Getenv("MARGO_DATA_DIR") if dir == "" { d, err := ioutil.TempDir("", "margo.data~fallback~") if err != nil { panic("MARGO_DATA_DIR is not defined and ioutill.TempDir failed: " + err.Error()) } dir = d } return &DataStore{ Path: filepath.Join(dir, "bolt.ds"), Handle: &codec.MsgpackHandle{}, Bucket: []byte("ds"), } }() )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.