MCPcopy Index your code
hub / github.com/dearcode/candy / NewStore

Function NewStore

store/server.go:31–40  ·  view source on GitHub ↗

NewStore new Store server.

(host, dbPath string)

Source from the content-addressed store, hash-verified

29
30// NewStore new Store server.
31func NewStore(host, dbPath string) *Store {
32 return &Store{
33 host: host,
34 dbPath: dbPath,
35 user: newUserDB(dbPath),
36 message: newMessageDB(dbPath),
37 group: newGroupDB(dbPath),
38 file: newFileDB(dbPath),
39 }
40}
41
42// Start Store service.
43func (s *Store) Start(notice, master string) error {

Callers

nothing calls this directly

Calls 4

newUserDBFunction · 0.85
newMessageDBFunction · 0.85
newGroupDBFunction · 0.85
newFileDBFunction · 0.85

Tested by

no test coverage detected