NewStore new Store server.
(host, dbPath string)
| 29 | |
| 30 | // NewStore new Store server. |
| 31 | func 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. |
| 43 | func (s *Store) Start(notice, master string) error { |
nothing calls this directly
no test coverage detected