mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-09 23:21:01 +00:00
16 lines
397 B
Go
16 lines
397 B
Go
package backend
|
|
|
|
import "github.com/ChronosX88/yans/internal/models"
|
|
|
|
const (
|
|
SupportedBackendList = "sqlite"
|
|
)
|
|
|
|
type StorageBackend interface {
|
|
ListGroups() ([]models.Group, error)
|
|
ListGroupsByPattern(pattern string) ([]models.Group, error)
|
|
GetArticlesCount(g models.Group) (int, error)
|
|
GetGroupLowWaterMark(g models.Group) (int, error)
|
|
GetGroupHighWaterMark(g models.Group) (int, error)
|
|
}
|