mirror of
https://github.com/go-micro/go-micro.git
synced 2025-05-19 21:23:04 +02:00
switch location of store dir to home dir
This commit is contained in:
parent
44ff301d2d
commit
a03ab5f601
@ -14,13 +14,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
HomeDir, _ = os.UserHomeDir()
|
||||||
|
|
||||||
// DefaultDatabase is the namespace that the bbolt store
|
// DefaultDatabase is the namespace that the bbolt store
|
||||||
// will use if no namespace is provided.
|
// will use if no namespace is provided.
|
||||||
DefaultDatabase = "micro"
|
DefaultDatabase = "micro"
|
||||||
// DefaultTable when none is specified.
|
// DefaultTable when none is specified.
|
||||||
DefaultTable = "micro"
|
DefaultTable = "micro"
|
||||||
// DefaultDir is the default directory for bbolt files.
|
// DefaultDir is the default directory for bbolt files.
|
||||||
DefaultDir = filepath.Join(".", "micro", "store")
|
DefaultDir = filepath.Join(HomeDir, "micro", "store")
|
||||||
|
|
||||||
// bucket used for data storage.
|
// bucket used for data storage.
|
||||||
dataBucket = "data"
|
dataBucket = "data"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user