17 lines
252 B
Go
17 lines
252 B
Go
|
//
|
||
|
// storage.go
|
||
|
// Copyright (C) 2022 tiglog <me@tiglog.com>
|
||
|
//
|
||
|
// Distributed under terms of the MIT license.
|
||
|
//
|
||
|
|
||
|
package storage
|
||
|
|
||
|
type Engine struct {
|
||
|
IStorageAdapter
|
||
|
}
|
||
|
|
||
|
func NewStorage(adapter IStorageAdapter) *Engine {
|
||
|
return &Engine{adapter}
|
||
|
}
|