yans/internal/backend/storage_backend.go

15 lines
336 B
Go
Raw Normal View History

2022-01-19 19:51:08 +00:00
package backend
import "github.com/ChronosX88/yans/internal/models"
const (
SupportedBackendList = "sqlite"
)
type StorageBackend interface {
ListGroups() ([]models.Group, error)
GetArticlesCount(g models.Group) (int, error)
GetGroupLowWaterMark(g models.Group) (int, error)
GetGroupHighWaterMark(g models.Group) (int, error)
2022-01-19 19:51:08 +00:00
}