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-18 13:15:55 +01:00
|
|
|
GetAllPages() ([]Page, error)
|
2022-03-15 21:50:11 +01:00
|
|
|
}
|