14 lines
222 B
Go
14 lines
222 B
Go
|
package interfaces
|
||
|
|
||
|
import (
|
||
|
"github.com/elastic/go-elasticsearch/v7"
|
||
|
"github.com/loveuer/upp/pkg/cache"
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
type Upp interface {
|
||
|
UseDB() *gorm.DB
|
||
|
UseCache() cache.Cache
|
||
|
UseES() *elasticsearch.Client
|
||
|
}
|