18 lines
325 B
Go
18 lines
325 B
Go
package interfaces
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/elastic/go-elasticsearch/v7"
|
|
"github.com/loveuer/upp/pkg/cache"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Upp interface {
|
|
UseCtx() context.Context
|
|
UseDB(ctx ...context.Context) *gorm.DB
|
|
UseCache() cache.Cache
|
|
UseES() *elasticsearch.Client
|
|
UseLogger(ctxs ...context.Context) Logger
|
|
}
|