Module it honors the storage.ModuleStorer interface.
(name string)
| 64 | |
| 65 | // Module it honors the storage.ModuleStorer interface. |
| 66 | func (s *basic) Module(name string) (storage.Storer, error) { |
| 67 | base, err := s.s.Module(name) |
| 68 | if err != nil { |
| 69 | return nil, err |
| 70 | } |
| 71 | |
| 72 | temporal, err := s.temporal.Module(name) |
| 73 | if err != nil { |
| 74 | return nil, err |
| 75 | } |
| 76 | |
| 77 | return NewStorage(base, temporal), nil |
| 78 | } |
| 79 | |
| 80 | // Commit it copies the content of the temporal storage into the base storage. |
| 81 | func (s *basic) Commit() error { |
nothing calls this directly
no test coverage detected