wikingo/model/store.go

13 lines
281 B
Go
Raw Normal View History

2022-03-15 21:50:11 +01:00
package model
2022-03-18 13:15:55 +01:00
// Store interface
type Store interface {
Open() error
2022-03-22 16:36:18 +01:00
AddPage(string, string) error
CreatePage(Page) error
GetPage(string) (Page, error)
2022-03-28 17:14:01 +02:00
GetPageVersion(string, string) (Page, error)
2022-03-18 13:15:55 +01:00
GetAllPages() ([]Page, error)
2022-04-04 22:16:07 +02:00
GetPageHistory(name string) ([]Page, error)
2022-03-15 21:50:11 +01:00
}